Advertisement
Guest User

Untitled

a guest
Mar 10th, 2019
412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. /* SMTP Settings */
  2. add_action( 'phpmailer_init', 'mail_smtp' );
  3. function mail_smtp( $phpmailer ) {
  4. $phpmailer->isSMTP();
  5. $phpmailer->Host = 'servidor';//'smtp.mail.com'
  6. $phpmailer->SMTPAutoTLS = false;
  7. $phpmailer->SMTPAuth = true;
  8. $phpmailer->Port = 587;
  9. $phpmailer->Username = 'usuario@mail.com';
  10. $phpmailer->Password = 'Password';
  11.  
  12. // Additional settings
  13. $phpmailer->SMTPSecure = "SMTP_PROTOCOL";
  14. $phpmailer->From = 'usuario@mail.com';
  15. $phpmailer->FromName = 'Usuario';
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement