Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require 'PHPMailerAutoload.php';
- $mail = new PHPMailer;
- $mail->isSMTP();
- $mail->Host = 'dallas137.arvixeshared.com';
- $mail->SMTPAuth = true;
- $mail->Username = 'ask@pocketrabbi.com';
- $mail->Password = '~~~~~~';
- $mail->SMTPSecure = 'tls';
- $mail->Port = 465;
- $mail->setFrom('ask@pocketrabbi.com', 'Questions');
- $mail->addAddress('pocketrabbi@gmail.com', 'PocketRabbi');
- $mail->addReplyTo('ask@pocketrabbi.com', 'Questions');
- $mail->isHTML(true);
- $mail->Subject = 'New Question';
- $mail->Body = 'Email: ' . $_POST["email"] . '/n Question: ' . $_POST["question"];
- if(!$mail->send()) {
- echo 'Message could not be sent.';
- echo 'Mailer Error: ' . $mail->ErrorInfo;
- } else {
- header( 'Location: http://www.pocketrabbi.com/thankyou.html' ) ;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement