Advertisement
Guest User

Untitled

a guest
Jul 31st, 2017
558
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. $subject="Forgot Password";
  2. $email="lss.schofield@msn.com";
  3. $msg="Test Password Test.";
  4. $smtp_mail_from = 'no-reply@wow-s.22web.net';
  5. $smtp_mail_from_name = 'Lss';
  6. $smtp_host = 'smtp.gmail.com';
  7. $smtp_port = '465'; // for test side 465 with SSL port will be used local with 587
  8. $smtp_username = 'mrstipt@gmail.com';
  9. $smtp_password = '*************';
  10. $email =$aEmailRec[0]->FROM_ADDR;
  11. $subject = $aEmailRec[0]->SUBJECT;
  12. $mail = new PHPMailer();
  13. $mail->From = $smtp_mail_from;
  14. $mail->FromName = $smtp_mail_from_name;
  15. $mail->Subject =$subject;
  16. $mail->Mailer = "smtp";
  17. $mail->SMTPAuth = true;
  18. $mail->SMTPDebug = true;
  19. $mail->SMTPSecure = "ssl";
  20. $mail->Host = $smtp_host;
  21. $mail->Port = $smtp_port;
  22. $mail->Username = $smtp_username;
  23. $mail->Password = $smtp_password;
  24. $to = $email;
  25. $mail->Body = $msg;
  26. $mail->IsHTML(true);
  27. $mail->AddAddress($to);
  28. $success = $mail->Send();
  29. echo"yes";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement