Advertisement
Guest User

Untitled

a guest
Sep 18th, 2017
451
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. 2017-09-18 19:14:37 SERVER -> CLIENT: 220-host.myfbs-apps.com ESMTP Exim 4.89 #1 Tue, 19 Sep 2017 03:14:37 +0800
  2.  
  3. 220-We do not authorize the use of this system to transport unsolicited,
  4. 220 and/or bulk e-mail.
  5. 2017-09-18 19:14:37 CLIENT -> SERVER: EHLO eumccis.com
  6. 2017-09-18 19:14:37 SERVER -> CLIENT: 250-host.myfbs-apps.com Hello eumccis.com [::1]
  7. 250-SIZE 52428800
  8. 250-8BITMIME
  9. 250-PIPELINING
  10. 250-AUTH PLAIN LOGIN
  11. 250-STARTTLS
  12. 250 HELP
  13. 2017-09-18 19:14:37 CLIENT -> SERVER: STARTTLS
  14. 2017-09-18 19:14:37 SERVER -> CLIENT: 220 TLS go ahead
  15. 2017-09-18 19:14:37 CLIENT -> SERVER: QUIT
  16. 2017-09-18 19:14:38 SERVER -> CLIENT: 221 host.myfbs-apps.com closing connection
  17. 2017-09-18 19:14:38 SMTP connect() failed.
  18.  
  19. $mail = new PHPMailer;
  20. $mail->IsSMTP();
  21. $mail->SMTPDebug =2;
  22. $mail->SMTPAuth = true;
  23. $mail->SMTPSecure = "tls";
  24. $mail->Host = "smtp.gmail.com";
  25. $mail->Port = 587;
  26. $mail->Username = "xyz@gmail.com";
  27. $mail->Password = "password";
  28. $mail->SetFrom('xyz@gmail.com', $admin_site_title);
  29. foreach ($admin_email as $k => $v) {
  30. $mail->addAddress($v);
  31. }
  32. $mail->isHTML(true);
  33. $mail->Subject = $rs_array['subject'];
  34.  
  35. $mail_content = mail_template_replace($rs_array['content'], $postfields);
  36.  
  37. $mail->Body = '<body>' . $mail_content . '</body>';
  38. if(!$mail->Send()) {
  39. echo "Mailer Error: " . $mail->ErrorInfo;
  40. } else {
  41. echo "Message has been sent";
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement