Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $email= $_POST[email];
- require 'PHPMailerAutoload.php';
- $mail = new PHPMailer; $mail->isSMTP();
- $mail->Host = 'mail.newbirth.in';
- $mail->SMTPAuth = true;
- $mail->Username = 'anmol@xyz.in';
- $mail->Password = 'helloxyz';
- $mail->Port = 587;
- $mail->setFrom('anmol@newbirth.in', "$email");
- $mail->addAddress('newbirth@gmail.com', 'new Moment');
- $mail->isHTML(true);
- $mail->Subject = "hello";
- $mail->Body = "hello";
- if (!$mail->send()) {
- echo 'Message could not be sent.';
- echo 'Mailer Error: ' . $mail->ErrorInfo;
- exit;
- }
- echo 'Message has been sent';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement