Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 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 Fri,
  23. 03 Mar 2017 22:15:11 -0500: UCE strictly prohibited
  24. SMTP -> FROM SERVER: 250-bosauthsmtp10.yourhostingaccount.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement