SMTP Feature Issue: Fails with Elastic Email API Key (Works in Other SMTP Plugin
-
Hello,
I’m reporting a compatibility issue with the SMTP feature in your plugin. It fails to authenticate with my Elastic Email add-on from Cloudways, while other dedicated SMTP plugins work perfectly with the exact same credentials.
To isolate the problem, I tested my setup with a dedicated SMTP plugin (WP Mail SMTP). When I configure it with my Elastic Email API Key, emails send without any issues. This confirms that my API key, and my domain’s authentication records (SPF/DKIM) are all 100% correct and functional.
However, when I use the built-in SMTP feature in ASE with the exact same API key, the connection fails with a 535 Authentication failed error. For context, my site is on Cloudways using their Elastic Email add-on, which requires using the API key for both the username and password fields in the SMTP settings.
Here is the SMTP debug log I managed to get:
2025-07-10 15:40:40 SERVER -> CLIENT: 220 smtp.elasticemail.com ESMTP
2025-07-10 15:40:40 SERVER -> CLIENT: 250-smtp.elasticemail.com…250-STARTTLS…250 OK
2025-07-10 15:40:40 CLIENT -> SERVER: STARTTLS
2025-07-10 15:40:40 SERVER -> CLIENT: 220 Begin TLS negotiation
2025-07-10 15:40:40 SERVER -> CLIENT: 250-smtp.elasticemail.com…250 OK
2025-07-10 15:40:40 CLIENT -> SERVER: AUTH CRAM-MD5
2025-07-10 15:40:40 SERVER -> CLIENT: 334 PDVhNTNhMjFkLTllZDItNDk0OS1iYWQyLWIwMjBiZWQ5MjgwOD4=
2025-07-10 15:40:40 CLIENT -> SERVER: [credentials hidden]
2025-07-10 15:40:42 SERVER -> CLIENT: 535 535 Authentication failed: Access denied.
[10-Jul-2025 15:02:44 UTC] SMTP INBOUND: "250-smtp.elasticemail.com"
[10-Jul-2025 15:02:44 UTC] SMTP INBOUND: "250-PIPELINING"
[10-Jul-2025 15:02:44 UTC] SMTP INBOUND: "250-SIZE 20971520"
[10-Jul-2025 15:02:44 UTC] SMTP INBOUND: "250-8BITMIME"
[10-Jul-2025 15:02:44 UTC] SMTP INBOUND: "250-AUTH=PLAIN LOGIN CRAM-MD5"
[10-Jul-2025 15:02:44 UTC] SMTP INBOUND: "250-AUTH PLAIN LOGIN CRAM-MD5"
[10-Jul-2025 15:02:44 UTC] SMTP INBOUND: "250 OK"
[10-Jul-2025 15:02:44 UTC] SERVER -> CLIENT: 250-smtp.elasticemail.com
250-PIPELINING
250-SIZE 20971520
250-8BITMIME
250-AUTH=PLAIN LOGIN CRAM-MD5
250-AUTH PLAIN LOGIN CRAM-MD5
250 OK
[10-Jul-2025 15:02:44 UTC] Auth method requested: UNSPECIFIED
[10-Jul-2025 15:02:44 UTC] Auth methods available on the server: PLAIN,LOGIN,CRAM-MD5
[10-Jul-2025 15:02:44 UTC] Requested auth method not available:
[10-Jul-2025 15:02:44 UTC] Auth method selected: CRAM-MD5
[10-Jul-2025 15:02:44 UTC] CLIENT -> SERVER: AUTH CRAM-MD5
[10-Jul-2025 15:02:44 UTC] SMTP INBOUND: "334 PGM5NTk3OWQxLTYxNTQtNGRmMS1hMTM2LTYyMmFmM2ZmZTM1MD4="
[10-Jul-2025 15:02:44 UTC] SERVER -> CLIENT: 334 PGM5NTk3OWQxLTYxNTQtNGRmMS1hMTM2LTYyMmFmM2ZmZTM1MD4=
[10-Jul-2025 15:02:44 UTC] CLIENT -> SERVER: MzE3QjVCNTZFQTE5NUM2OEEwRDMyNTJBOENERDAzNkUyNjU3MjNDQTlERjAxQjEzMTQxRUE1NUE5QUU0MTJCMjNDN0MyQzk2MUFCMDcyODkzMTYyQkJBNzJENjY3N0M0IGIzNzNmNTkzYjAyN2Y1NjJhNzZjNTBkY2NjNTk2NmZi
[10-Jul-2025 15:02:46 UTC] SMTP INBOUND: "535 535 Authentication failed: Access denied."
[10-Jul-2025 15:02:46 UTC] SERVER -> CLIENT: 535 535 Authentication failed: Access denied.
[10-Jul-2025 15:02:46 UTC] SMTP ERROR: Username command failed: 535 535 Authentication failed: Access denied.
[10-Jul-2025 15:02:46 UTC] SMTP Error: Could not authenticate.
[10-Jul-2025 15:02:46 UTC] CLIENT -> SERVER: QUIT
[10-Jul-2025 15:02:46 UTC] SMTP INBOUND: "221 Good bye"
[10-Jul-2025 15:02:46 UTC] SERVER -> CLIENT: 221 Good bye
[10-Jul-2025 15:02:46 UTC] Connection: closed
[10-Jul-2025 15:02:46 UTC] SMTP Error: Could not authenticate.
The topic ‘SMTP Feature Issue: Fails with Elastic Email API Key (Works in Other SMTP Plugin’ is closed to new replies.