Advertisement
Guest User

Untitled

a guest
Sep 11th, 2017
529
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. <?php
  2. echo "Testing Class PHPmail 3";
  3. require("class.phpmailer.php");
  4. $mail = new PHPMailer();
  5. $mail->SMTPDebug = 1; // Enable verbose debug output
  6. $mail->isSMTP();
  7. $mail->Host = "relay-hosting.secureserver.net";
  8. $mail->Port = 25;
  9. $mail->SMTPSecure = "none";
  10. $mail->SMTPAuth = false;
  11. $mail->Username = "";
  12. $mail->Password = "";
  13.  
  14. $mail->From = "info@sa3at-soujoud.com";
  15. $mail->AddAddress("info@luxurylebanon.com");
  16. $mail->Subject = "First PHPMailer Message";
  17. $mail->Body = "Hi! nn This is my first e-mail sent through PHPMailer.";
  18. $mail->WordWrap = 50;
  19. if(!$mail->Send()) {
  20. echo 'Message was not sent.';
  21. echo 'Mailer error: ' . $mail->ErrorInfo;
  22. } else {
  23. echo 'Message has been sent.';
  24. }
  25. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement