Advertisement
colin123

Untitled

Sep 11th, 2019
7,974
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. // Configures SMTP authentication
  2. add_action( 'phpmailer_init', 'send_smtp_email' );
  3. function send_smtp_email( $phpmailer ) {
  4. $phpmailer->isSMTP();
  5. $phpmailer->Host = SMTP_HOST;
  6. $phpmailer->SMTPAuth = SMTP_AUTH;
  7. $phpmailer->Port = SMTP_PORT;
  8. $phpmailer->Username = SMTP_USER;
  9. $phpmailer->Password = SMTP_PASS;
  10. $phpmailer->SMTPSecure = SMTP_SECURE;
  11. $phpmailer->From = SMTP_FROM;
  12. $phpmailer->FromName = SMTP_NAME;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement