Advertisement
Guest User

Untitled

a guest
Apr 11th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. <?php
  2. require 'PHPMailerAutoload.php';
  3.  
  4. $mail = new PHPMailer;
  5.  
  6.  
  7.  
  8. $mail->isSMTP();
  9. $mail->Host = 'dallas137.arvixeshared.com';
  10. $mail->SMTPAuth = true;
  11. $mail->Username = 'ask@pocketrabbi.com';
  12. $mail->Password = '~~~~~~';
  13. $mail->SMTPSecure = 'tls';
  14. $mail->Port = 465;
  15. $mail->setFrom('ask@pocketrabbi.com', 'Questions');
  16. $mail->addAddress('pocketrabbi@gmail.com', 'PocketRabbi');
  17. $mail->addReplyTo('ask@pocketrabbi.com', 'Questions');
  18. $mail->isHTML(true);
  19. $mail->Subject = 'New Question';
  20. $mail->Body = 'Email: ' . $_POST["email"] . '/n Question: ' . $_POST["question"];
  21.  
  22. if(!$mail->send()) {
  23. echo 'Message could not be sent.';
  24. echo 'Mailer Error: ' . $mail->ErrorInfo;
  25. } else {
  26. header( 'Location: http://www.pocketrabbi.com/thankyou.html' ) ;
  27. }
  28. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement