Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
5,077
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. SMTP -> get_lines(): $data was ""
  2. SMTP -> get_lines(): $str is "220 Ready to start TLS. "
  3. SMTP -> get_lines(): $data is "220 Ready to start TLS. "
  4. SMTP -> FROM SERVER:220 Ready to start TLS.
  5. SMTP -> FROM SERVER:
  6. SMTP -> ERROR: RSET failed:
  7. Language string failed to load: tls
  8.  
  9. $email = 'test@gmail.com';
  10. $message = 'test test test';
  11. $subject = 'test';
  12.  
  13. function send_mail($email,$message,$subject)
  14. {
  15. require_once('mailer/class.phpmailer.php');
  16.  
  17. $mail = new PHPMailer();
  18. $mail->IsSMTP();
  19. $mail->SMTPDebug = 4;
  20. $mail->SMTPAuth = true;
  21. $mail->SMTPSecure = "tls";
  22. $mail->Host = "smtp.zoho.com";
  23. $mail->Port = 587;
  24. $mail->AddAddress($email);
  25. $mail->Username="admin@domain.com";
  26. $mail->Password="xxxxx";
  27. $mail->SetFrom('admin@domain.com','domain');
  28. $mail->AddReplyTo("admin@domain.com","domain");
  29. $mail->Subject = $subject;
  30. $mail->MsgHTML($message);
  31. $mail->Send();
  32. }
  33.  
  34. send_mail($email,$message,$subject);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement