Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2018
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. $mail = new PHPMailer();
  2. $mail->Host='mail..com';
  3. $mail->Hostname='www..net';
  4. //$mail->SMTPSecure = 'ssl';
  5. //$mail->Port = 465;
  6. $mail->SMTPSecure = false;
  7. $mail->SMTPAuth = true;
  8. $mail->Username = '';
  9. $mail->Password = '';
  10. $mail->setFrom('from@example.com', 'First Last');
  11. $mail->Subject = 'PHPMailer SMTP test';
  12. $mail->AltBody = 'This is a plain-text message body';
  13. $mail->addAddress();
  14. $mail->msgHTML(file_get_contents('contents.html'), __DIR__);
  15. $mail->SMTPDebug = 4;
  16. $mail->isSMTP();
  17. $mail->SMTPOptions = array(
  18. 'ssl' => array(
  19. 'verify_peer' => false,
  20. 'verify_peer_name' => false,
  21. 'allow_self_signed' => true
  22. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement