Advertisement
Guest User

Untitled

a guest
Aug 6th, 2017
439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. $email = new PHPMailer();
  2. $email->isSMTP();
  3. $email->SMTPDebug = 0;
  4. $email->Debugoutput = 'html';
  5. $email->SMTPAuth = true;
  6. $email->Host = "gator2010.hostgator.com";
  7. $email->Port = 465;
  8. $email->Username = "email@mydomain.com";
  9. $email->Password = "emailpassword";
  10. $email->setFrom('email@mydomain.com', 'Sender Name');
  11. $email->Subject = 'Subject';
  12. $email->MsgHTML($body);
  13. $email->AddAddress( "useraddress" );
  14. $email->AddReplyTo('email@mydomain.com');
  15. if(!$email->Send()) {
  16. header("xxx");
  17. die ();
  18. } else {
  19. header("yyy");
  20. die ();
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement