Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. $mail = new PHPMailer(true);
  2. $mail->CharSet = "UTF-8";
  3. $mail->IsSMTP();
  4. $mail->Host = SMTPHost;
  5. $mail->SMTPDebug = SMTPDebug;
  6. $mail->SMTPAuth = SMTPAuth;
  7. $mail->Port = SMTPPort;
  8. $mail->Username = SMTPUsername;
  9. $mail->Password = SMTPPassword;
  10. $mail->SMTPSecure = "ssl";
  11.  
  12. $mail->IsHTML(true);
  13. $mail->AddAddress($to, $to);
  14. $mail->SetFrom($from, $from);
  15. $mail->AddReplyTo($from, $from);
  16. $subject = "oublié ?"; // if "oublie": it works fine !
  17. $mail->Subject = $subject;
  18. $mail->Send();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement