Advertisement
Guest User

Untitled

a guest
Mar 4th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. function send_mail($email,$message,$subject) {
  2. require_once('mailer/class.phpmailer.php');
  3. $mail = new PHPMailer();
  4. $mail->IsSMTP();
  5. $mail->SMTPDebug = 2;
  6. $mail->SMTPAuth = true;
  7. $mail->SMTPSecure = "tls";
  8. $mail->Host = "smtp.ipage.com";
  9. $mail->Port = 587;
  10. $mail->AddAddress($email);
  11. $mail->AddCC('info@m7b5.com', 'm7b5');
  12. $mail->Username="test@m7b5.com";
  13. $mail->Password="dsdw23dds";
  14. $mail->SetFrom('info@m7b5.com','m7b5');
  15. $mail->AddReplyTo("info@m7b5.com","m7b5");
  16. $mail->Subject = $subject;
  17. $mail->MsgHTML($message);
  18. $mail->Send();
  19. }
  20. }
  21.  
  22. SMTP -> FROM SERVER:220 ESMTP Sat, 04 Mar 2017 10:31:18 -0500: UCE strictly prohibited
  23. SMTP -> FROM SERVER: 250-bosauthsmtp10.yourhostingaccount.com Hello www.m7b5.com [66.96.143.93] 250-SIZE 34603008 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP
  24. SMTP -> FROM SERVER:220 TLS go ahead
  25. SMTP -> FROM SERVER: 250-bosauthsmtp10.yourhostingaccount.com Hello www.m7b5.com [66.96.143.93] 250-SIZE 34603008 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250 HELP
  26. SMTP -> FROM SERVER:250 OK
  27. SMTP -> FROM SERVER:250 Accepted
  28. SMTP -> FROM SERVER:250 Accepted
  29. SMTP -> FROM SERVER:354 Enter message, ending with "." on a line by itself
  30. SMTP -> FROM SERVER:250 OK id=1ckBeS-0001xZ-SM
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement