Title: Plugin does not send emails
Last modified: December 16, 2019

---

# Plugin does not send emails

 *  [iacovlevpavel](https://wordpress.org/support/users/iacovlevpavel/)
 * (@iacovlevpavel)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/plugin-does-not-send-emails/)
 * 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](https://imgur.com/iMItnOn)
 * Can anyone point in the right direction to solve this?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [janmartin3](https://wordpress.org/support/users/janmartin3/)
 * (@janmartin3)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/plugin-does-not-send-emails/#post-12251254)
 * 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)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/plugin-does-not-send-emails/#post-12309637)
 * Hi all, sorry for the late reply due to the holiday season.
 * I just tested out the suggestion by [@janmartin3](https://wordpress.org/support/users/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](https://wordpress.org/plugins/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.

 * ![](https://ps.w.org/login-with-ajax/assets/icon-256x256.png?rev=976165)
 * [Login With Ajax - Fast Logins, 2FA, Redirects](https://wordpress.org/plugins/login-with-ajax/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/login-with-ajax/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/login-with-ajax/)
 * [Active Topics](https://wordpress.org/support/plugin/login-with-ajax/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/login-with-ajax/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/login-with-ajax/reviews/)

## Tags

 * [wp-config.php](https://wordpress.org/support/topic-tag/wp-config-php/)

 * 2 replies
 * 3 participants
 * Last reply from: [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/plugin-does-not-send-emails/#post-12309637)
 * Status: not resolved