Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
590
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.54 KB | None | 0 0
  1. $mail->isSMTP();                                      // Set mailer to use SMTP
  2.     $mail->Host = 'smtp1.example.com;smtp2.example.com';  // Specify main and backup SMTP servers
  3.     $mail->SMTPAuth = true;                               // Enable SMTP authentication
  4.     $mail->Username = 'user@example.com';                 // SMTP username
  5.     $mail->Password = 'secret';                           // SMTP password
  6.     $mail->SMTPSecure = 'tls';                            // Enable TLS encryption, `ssl` also accepted
  7.     $mail->Port = 587;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement