Support

Home Forums Event Espresso Premium Email confirming registration not getting out – email did not send successfully

Email confirming registration not getting out – email did not send successfully

Posted: December 19, 2024 at 9:40 am

Viewing 9 reply threads


NDIACL

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.


Garth

  • Support Staff

December 19, 2024 at 1:03 pm

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?


NDIACL

December 19, 2024 at 8:57 pm

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…


NDIACL

December 20, 2024 at 3:18 pm

This reply has been marked as private.


Tony

  • Support Staff

December 20, 2024 at 3:28 pm

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)


NDIACL

December 21, 2024 at 11:08 pm

This reply has been marked as private.


NDIACL

December 21, 2024 at 11:13 pm

This reply has been marked as private.


Tony

  • Support Staff

December 22, 2024 at 8:10 am

The logger caught that the “Some plugins were automatically updated” email was successfully sent out… and my other plugins that send out email seem to be working fine…

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:

Could not instantiate mail function.

Which unfortunately can happen for many different reasons and the same error is returned.

The plugin suggests I install WP Mail SMTP which I understand is a paid plugin.

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?


NDIACL

December 22, 2024 at 3:34 pm

This reply has been marked as private.


Tony

  • Support Staff

December 23, 2024 at 4:23 pm

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.

Viewing 9 reply threads

You must be logged in to reply to this support post. Sign In or Register for an Account

Event Espresso