Support » Plugin: WP Mail SMTP by WPForms » LOGIN/PLAIN

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Sanjeev Aryal

    (@sanzeeb3)

    Hi @szilard21,

    Thanks for reaching out. `The “Other SMTP” mailer uses the PHPMailer.php class, which is bundled in core WP. Our plugin does not specify/set the Authentication so by default it should try all of the authentications. The comment of authentication type is:

    Options are CRAM-MD5, LOGIN, PLAIN, XOAUTH2, attempted in that order if not specified.

    So, you’ll likely don’t need to do anything as it uses the Authtype that the SMTP server offers.

    I hope this helps!

    • This reply was modified 1 month, 4 weeks ago by Sanjeev Aryal. Reason: blockquote formatting
    Thread Starter szilard21

    (@szilard21)

    Thank you for your reply!

    Then I don’t know what the problem is, why the mail didn’t go out. It only worked because the server company reset the old technology.

    Plugin Support Sanjeev Aryal

    (@sanzeeb3)

    Hi @szilard21,

    Thanks for getting back. In that case, you can specify a specific Auth type using a little custom code which I’ve included below:

    add_filter( 'wp_mail_smtp_custom_options', function( $phpmailer ) {
    	$phpmailer->AuthType = 'LOGIN';
    	return $phpmailer;
    } );

    In case it helps, you can follow this documentation on easily adding custom code snippets.

    I hope this helps!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.