colin123

Untitled

Sep 11th, 2019
3,135
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data