Advertisement
Guest User

Untitled

a guest
Aug 31st, 2017
604
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. function send_mail($email,$message,$subject)
  2. {
  3. require_once('mailer/class.phpmailer.php');
  4. $mail = new PHPMailer();
  5. $mail->IsSMTP();
  6. $mail->SMTPDebug = 0;
  7. $mail->SMTPAuth = true;
  8. $mail->SMTPSecure = "tls";
  9. $mail->Host = "mail.quickdawa.in";
  10. $mail->Port = 587;
  11. $mail->AddAddress($email);
  12. $mail->Username="info@quickdawa.in";
  13. $mail->Password=""; // correct password
  14. $mail->SetFrom('info@quickdawa.in','QuickDawa');
  15. $mail->AddReplyTo("info@quickdawa.in","QuickDawa");
  16. $mail->Subject = $subject;
  17. $mail->MsgHTML($message);
  18. $mail->Send();
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement