Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. $mail->isSMTP(); // Set mailer to use SMTP
  2. $mail->Host = 'smtp.gmail.com'; // Specify main and backup SMTP servers
  3. $mail->SMTPAuth = true; // Enable SMTP authentication
  4. $mail->Username = ''; // SMTP username
  5. $mail->Password = ''; // SMTP password
  6. $mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted
  7. $mail->Port = 587; // TCP port to connect to
  8.  
  9. $mail->isSMTP(); // Set mailer to use SMTP
  10. $mail->Host = 'smtp.gmail.com'; // Specify main and backup SMTP servers
  11. $mail->SMTPAuth = true; // Enable SMTP authentication
  12. $mail->Username = 'mygmailemailaddress@gmail.com'; // SMTP username
  13. $mail->Password = 'mysmtppassword'; // SMTP password
  14. $mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted
  15. $mail->Port = 587; // TCP port to connect to
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement