Posted: December 19, 2024 at 9:40 am
An error has occurred: The email did not send successfully. The WordPress wp_mail function is used for sending mails but does not give any useful information when an email fails to send. Emails go out successfully from other plugins using the wp_mail function. |
|
Hi there, Can you describe when this happens? Does it happen upon a successful registration, or while sending a Batch message, or while re-sending messages? |
|
Hi Garth, It happened when I made a successful payment via Authorize.net but failed to send the registration confirmation email and also didn’t go to the next/final stage which I assume would be to put up a web page advising the registrant of their successful registration and details. I tried resending messages individually via the plugin’s messages section but got the same error… |
|
This reply has been marked as private. | |
Event Espresso doesn’t technically ‘send’ email itself, it sets up the content and headers and then passes that to wp_mail() to do whatever it is set up to do to send email. For the about your getting an error on send and we need to know what that error is. Add this plugin: https://wordpress.org/plugins/wp-mail-logging/ Then retest the above, does WP Mail Logging show any more details on the error being thrown for the email? (With the above plugin enabled, WP Mail logging will show in the admin menu and all emails should show up there) |
|
This reply has been marked as private. | |
This reply has been marked as private. | |
Email is finicky, and X mail sending from one plugin doesn’t mean it will send from another. The emails you are referencing above are plain text emails, the email sent from EE are HTML emails. Errors from how the PHPMailer is set up can lead to massive differences in how those are handled. I’m not saying there isn’t something up here, just that relying on the fact that some emails work and other do not is going to lead you round and round in circles. OK, so the error is:
Which unfortunately can happen for many different reasons and the same error is returned.
The reason you’ll find that recommendation pretty much everywhere is the solution to fixing email issues is to move away from using your web hosts mailsever (whcih is how your sending emails) to use a server set up specifically for it (like the mail sever hosting your mail, Gmail for example). Who hosts the sites email currently? |
|
This reply has been marked as private. | |
Awesome! Good to hear switching to send via SMTP fixed this. You’re now sending the site’s email through your email provider’s email servers which generally fixes most issues. |
|
You must be logged in to reply to this support post. Sign In or Register for an Account