• I have a fresh install of WordPress 5.3.1, Login With Ajax 3.1.8.1, WP Mail SMTP 1.8.1, Beaver Builder Plugin (Pro Version) 2.3.0.1.

    I have setup SMTP using WP Mail plugin, test email works correctly.

    If I use /wp-login.php?action=register directly, registration works as expected.

    When I try to use Login With Ajax, it fails to send the email, for both Register and Lost your password case.

    Here is the error:

    View post on imgur.com

    Can anyone point in the right direction to solve this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • We found out why it did not work:

    login-with-ajax is incompatible with the WP mail SMTP plug-in wp-config.php option:

    Dashboard -> WP mail SMTP
    tells:
    SMTP Password
    [ …… ]
    The password is stored in plain text. We highly recommend you set up your password in your WordPress configuration file for improved security.
    To do this add the lines below to your wp-config.php file:

    define( ‘WPMS_ON’, true );
    define( ‘WPMS_SMTP_PASS’, ‘your_password’ );

    After removing those 2 lines from the wp-config.php file login-with-ajax started to send the emails.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    Hi all, sorry for the late reply due to the holiday season.

    I just tested out the suggestion by @janmartin3 but for me this works fine. Also, we don’t do anything special with emails, we use wp_mail for registration emails and the remember me email is triggered by a WP function, not us.

    I’d suggest you try this with other plugins disabled (and use a default WP theme) which you can do just for yourself using my WP Safe Mode plugin.

    Also, are you using Gmail by any chance? I’ve found it to be VERY unstable now with SMTP, and later this year it will cease to allow SMTP for sending emails anyway so I’d suggest connecting via WP SMTP’s oAuth option.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin does not send emails’ is closed to new replies.