Home / Archive / WP Mail SMTP: specify an exact AuthType to connect to a Server.
Duplicate Snippet

Embed Snippet on Your Site

WP Mail SMTP: specify an exact AuthType to connect to a Server.

Some SMTP servers require a very specific AuthType to connect to them in order to send an email. This snippet allows you to modify which one will be used.
Code Preview
php
<?php
add_filter( 'wp_mail_smtp_custom_options', function( $phpmailer ) {
	$phpmailer->AuthType = 'LOGIN';
	return $phpmailer;
} );

Comments

Add a Comment