contact_mailContact Form 7errorerrorlinkconnectiondescriptioncontact-form-7mailMailextensionpluginstar_halfUncommonwarningModerate

Contact Form 7: Mail (2) sending failed: SMTP authentication error

Contact Form 7 tries to send email through WordPress mail system. When the form uses a second mail template, it calls the SMTP driver that is configured by a plugin. The driver attempts to log in to the external mail server. If the server rejects the login, the form reports an authentication error.

The rejection happens because the credentials do not match what the server expects. This includes wrong username, password, or an expired app‑specific password. It also occurs when the server requires TLS or SSL but the selected encryption does not align with the port.

Some hosts block outbound SMTP traffic. In that case the connection never reaches the mail server and the driver reports a failure. A mismatched “From” address can also trigger rejection because the server only allows verified senders.

Outdated mail plugins may use an old PHPMailer version that does not support modern authentication methods. When another plugin overrides the wp_mail filter, it can pass incorrect data to PHPMailer, leading to the same error.

All of these factors stop the email from leaving the site. The form shows a red error banner and no message arrives in the inbox.

Symptoms

[dashicons-warning]
Error banner on submit
Red message appears after form submission stating Mail (2) sending failed
[dashicons-email]
No email received
Message never arrives in inbox or spam folder
[dashicons-admin-tools]
Debug log entry
Log shows PHPMailer::SMTP -> ERROR: SMTP Error: Could not authenticate

Common Causes

Wrong credentials
Username, password, or app‑specific password does not match the mail provider
Encryption/port mismatch
Selected TLS/SSL setting does not correspond to the server’s required port
Host blocks outbound SMTP
Server firewall or hosting policy prevents connections on ports 25, 465, or 587
Invalid From address
Sender address is not authorized by the SMTP service
Plugin conflict
Another plugin overrides wp_mail and supplies incorrect authentication data
Need this fixed right now?

Don't waste your day debugging. Our experts can Fix your issues in under 2 hours.*

Success Rate

100% Guaranteed

Starting from

$35 /hour
99+

Trusted by Business Owners

“I spent 3 days trying to fix the Elementor loading loop. These guys fixed it in 20 minutes. Lifesavers!”

— Sarah J., Web Designer

Related Issues

contact_mail
Contact Form 7: REST API request failed: 503 Service Unavailable
A 503 Service Unavailable response stops Contact Form 7 from sending data...
apiREST APIerror503descriptioncontact-form-7
contact_mail
Contact Form 7: REST API request failed: 429 Too Many Requests

The form tries to send data through the WordPress REST API. The...

apiREST APIerrorerrorsecurityfirewalldescriptioncontact-form-7settingsserver_configuration
contact_mail
Contact Form 7: REST API request failed: 401 Unauthorized

The form tries to send data via the WordPress REST API. The...

apiREST APIadmin_panel_settingspermissionsdescriptioncontact-form-7lock401
contact_mail
Contact Form 7: File upload error: temporary directory missing

The error appears when Contact Form 7 cannot locate a writable temporary...

codePHPcloud_offupload erroradmin_panel_settingspermissionsdescriptiontemporary filedescriptioncontact-form-7
contact_mail
Contact Form 7: Mail (2) sending failed: PHP mail() function disabled

Contact Form 7 reports a failure for Mail (2) when the PHP...

codePHPerrorerrordescriptioncontact-form-7mailMailsettingsserver_configuration
contact_mail
Contact Form 7: Mail (2) sending failed: SSL certificate verification failed

Contact Form 7 reports a failure when trying to send the secondary...

errorerrorlocksslcodecURLdescriptioncontact-form-7