Advertisement
Guest User

Untitled

a guest
Feb 28th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. (...)
  2. $mail = new PHPMailer;
  3. $mail->isSMTP();
  4. $mail->Host = 'smtp.gmail.com';
  5. $mail->Port = 587;
  6. $mail->SMTPSecure = 'tls';
  7. $mail->SMTPAuth = true;
  8. $mail->Username = mailAccount;
  9. $mail->Password = mailPassword;
  10. $mail->addAddress($email);
  11. $mail->Subject = $_POST["subject"];
  12. $mail->msgHTML("Vous avez un nouveau message dans la messagierie interne de Read-it !");
  13. $mail->send();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement