Jump to content

Problema panel


DiBlaine
 Share

Recommended Posts

  • Username: Ken
  • ÃŽntrebare: Cum pot trimite resetarea parolei pe email? Am creeat contul SMTP insa cand dau recover imi scrie ''Email could not be sent.''
  • Alte detalii: In baza de date insereaza aceasta resetare de parola.
$mail = new PHPMailer;
$mail->isSMTP();
$mail->Host = '89.46.6.119'; - aici tin sa precizez ca nu am modificat
$mail->SMTPAuth = false;
$mail->Username = 'contact@jamaica.ro';
$mail->Password = 'p1hEIhKxiD2)';
$mail->SMTPSecure = 'tls';
$mail->Port = 25;
$mail->setFrom('contact@jamaica.ro', 'jamaica.ro');
$mail->addAddress($email);
$mail->Subject = 'jamaica.ro - password recovery / recuperare parola';
$mail->Body    = "$user,
[RO] Ai primit acest email pentru ca ai solicitat resetarea parolei pe serverul jamaica.ro
Daca nu doresti sa iti schimbi parola, poti ignora/sterge acest email.
Pentru a-ti schimba parola, da click pe link-ul de mai jos: 
".Config::$_PAGE_URL."change/".$final_key."


[EN] You have recived this email because you have requested a reset of your password on jamaica.ro
If you don't want to change your password, please ignore this email. 
To change your password, please click the link above this message.

Cu stima,
Echipa jamaica.ro
Contact: contact@jamaica.ro";
if(!$mail->send()) {
    echo 'Email could not be sent.';
} else {
$email1 = explode('@', $email);				
$first_part = $email1[0];					
$domain = $email1[1];
$newemail = substr($first_part, 0, 4) . "****@" . substr($domain, 0, 10);
echo "<div class='alert alert-block alert-success'><center>Code sent!<br />The verification code was sent to ". $newemail ."!<br />Please check your email. Also check the Spam folder!</center></div>";
}

 

Link to comment
Share on other sites

  • Chase. locked this topic
Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...