Advertisement
Guest User

Untitled

a guest
Mar 31st, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. function wpse81_phpmailer_init( PHPMailer $phpmailer ) {
  2. $phpmailer->IsSMTP();
  3. $phpmailer->Host = 'mail.website.com';
  4. $phpmailer->Port = 465; // could be different
  5. $phpmailer->Username = 'noreply@website.com'; // if required
  6. $phpmailer->Password = 'password'; // if required
  7. $phpmailer->SMTPAuth = true; // if required
  8.  
  9. $phpmailer->SMTPSecure = 'ssl'; // enable if required, 'tls' is another possible value
  10. $phpmailer->From = "noreply@website.com";
  11. $phpmailer->FromName = "Noob";
  12.  
  13. }
  14. add_action( 'phpmailer_init', 'wpse81_phpmailer_init' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement