Skip to content

Instantly share code, notes, and snippets.

@slaFFik
Created February 5, 2020 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slaFFik/bb80615c01ab9cefe12f3d8b9711b983 to your computer and use it in GitHub Desktop.
Save slaFFik/bb80615c01ab9cefe12f3d8b9711b983 to your computer and use it in GitHub Desktop.
WP Mail SMTP: specify an exact AuthType to connect to a Server.
<?php
add_filter( 'wp_mail_smtp_custom_options', function( $phpmailer ) {
$phpmailer->AuthType = 'LOGIN';
return $phpmailer;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment