Advertisement
Guest User

Untitled

a guest
Jun 1st, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.01 KB | None | 0 0
  1. <?php
  2. require("class.phpmailer.php");
  3.  
  4. $mail = new PHPMailer();
  5.  
  6. $mail->IsSMTP();                                      // set mailer to use SMTP
  7. $mail->Host = "ssl://smtp.gmail.com";  // specify main and backup server
  8. $mail->Port = 465;
  9. $mail->SMTPAuth = true;     // turn on SMTP authentication
  10. $mail->Username = "info@maciacartgallery.it";  // SMTP username
  11. $mail->Password = "myPass"; // SMTP password
  12.  
  13. $mail->From = "thecypherone@gmail.com";
  14. $mail->FromName = "Cypher";
  15. $mail->AddAddress("info@maciacartgallery.it");
  16. $mail->AddReplyTo("thecypherone@gmail.com", "Cypher");
  17.  
  18. $mail->WordWrap = 50;                                 // set word wrap to 50 characters
  19.  
  20. $mail->Subject = "Website Message";
  21. $mail->Body    = "";
  22. $mail->AltBody = "ashjdgjsdghssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss";
  23.  
  24. if(!$mail->Send())
  25. {
  26.    echo "Mailer Error: " . $mail->ErrorInfo;
  27.    echo '&sent=Error';
  28. }
  29. else
  30. {
  31.     echo '&sent=OK';
  32.     echo "Cypher";
  33. }
  34.  
  35. echo "cypher";
  36.  
  37. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement