Advertisement
Guest User

Untitled

a guest
Nov 3rd, 2018
602
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. $mail = new PHPMailer();
  2.  
  3. $mail->isSMTP();
  4. $mail->SMTPAuth = true;
  5. $mail->SMTPSecure = 'ssl';
  6. $mail->Host = 'smtp.gmail.com';
  7. $mail->Port = 465;
  8. $mail->CharSet = 'UTF-8';
  9. $mail->Username = 'mail@gmail.com';
  10. $mail->Password = 'haslo';
  11.  
  12. $mail->isHTML(true);
  13. $mail->setFrom('user@gmail.com', 'Name');
  14. $mail->Subject = 'New message';
  15. $mail->Body = 'message';
  16. $mail->addAddress('mail.to@gmail.com', 'Page');
  17.  
  18. $mail->Send();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement