Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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