You’ve finished the site, the client has signed off and all that’s left is the launch but the form test keeps failing. Right, we better solve this one quickly then!
The error message
When you press send, instead of your form being delivered as an email you see the generic fail message:
FIX “FAILED TO SEND YOUR MESSAGE. PLEASE TRY LATER OR CONTACT ADMINISTRATOR BY OTHER WAY.”
The quickest solution you’re going to get today
By default WordPress leans on the standard PHP mail()
function to send its emails. Its a zero configuration solution and it works in most situations. Occasionally it doesn’t.
Under the hood WordPress also supports using an SMTP server but it doesn’t expose this to you through the admin panel. Assuming you have access to an outgoing SMTP mail server, the quick way to get this done is to simply install one of the SMTP plugins out there. It doesn’t really matter which one as they all do the same thing.
I picked this one because it had a lot of users and had been updated recently:
You just install it as you normally would any other plugin, add your SMTP server details and you’re done. WordPress (and subsequently Contact Form 7) will now send all of its messages using this SMTP server instead of the built-in PHPmail()
.
Great. Pass the invoice to accounts and move on to your next client!
2 comments :
In my case, I got this error because I was inheriting from DbContext instead of IdentityDbContext. Whops! This post pointed me in the right direction, though. Thanks.
Thanks, this worked for me!
Post a Comment