Advertisement
Guest User

Untitled

a guest
Jun 6th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. <?php
  2. // settings for SMTP
  3.  
  4. $mail->IsSMTP(); // enable SMTP
  5. $mail->SMTPDebug = 1; // debugging: 1 = errors and messages, 2 = messages only
  6. $mail->SMTPAuth = true; // authentication enabled
  7. $mail->SMTPSecure = 'ssl'; // secure transfer enabled REQUIRED for Gmail
  8. $mail->Host = "smtp.gmail.com";
  9. $mail->Port = 465; // or 587
  10. $mail->IsHTML(true);
  11. $mail->Username = "andrejatrajkovic999@gmail.com";
  12. $mail->Password = "And87@Mil$";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement