Posted: January 28, 2025 at 7:59 pm
Hello, I turned off the built-in wp_mail since I use the WP Mail Bank Smtp plugin. When I did this many of the Default Message templates disappeared. I only see 2 templates now – Receipt and Invoice – both going to the Purchaser. Does the admin receive an email on this? Is there an admin email template for this? The mp_mail didn’t work so I am now trying to figure out who is getting emails when a user registers. Thank you |
|
Hi there,
Can you explain what you mean by this and what exactly was turned off, please? wp_mail is a function within WordPress core which WP Mail Bank SMTP will utilize, its how virtual all plugins ‘send’ email from WordPress and then SMTP plugins step in after everything else has don’e its thing and tells wp_mail to send the email via its SMTP setup (I’m overly simplifying this but the idea is the same). Based on your post, it sounds like you disabled emails within Event Espresso, which will indeed disable the email functionality within EE and the message templates as the email function has been disabled. If that’s the case and you want emails sent from EE, you’ll need to turn the email functionality back on within EE and then we can troubleshoot what is happening with wp_mail and WP Mail Bank SMTP from there.
If you don’t have any message templates displayed in EE it means the message functionality is disabled so no emails will send. When you say wp_mail didn’t work… what happened? By that I’m assuming you didn’t receive the emails but what else? Did the message show in Event Espresso -> Messages and if so, what status did the email have? —- Just to explain a little, Event Espresso doesn’t ‘send’ email itself, what it does is build out the content and headers (to/from etc) and pass that all over to wp_mail() to do any additional formatting it needs to do and then it sends the email however your server is set up to do so (that’s where something like WP Mail Bank SMTP comes in). This is all pretty standard and how all plugins will send emails. If you’ve disabled the email functionality within EE’s message settings you haven’t disable wp_mail, you’ve just told EE to stop sending emails which is why I’m saying turn that back on and we can work on the rest 🙂 |
|
Ok thanks. I thorught wp_mail was the settings for WordPress which was different from the SMTP plugin settings. I switched it back, tested it and it’s working. For some reason the first test didn’t send the email. Thank you for your quick response! |
|
Something to note is there is a message queue system within EE. When an email is triggered it puts a placeholder in the queue, then when the ‘message generation’ step is triggered (done so via WP_CRON) around 5 mins later the email generates, then sits waiting for the ‘message generation’ step to trigger (again another 5 mins roughly). So a standard message may take around 10mins to work through the system and it relies on pages being ‘hit’ to trigger those tasks (that’s how WPCRON works). |
|
The support post ‘Email’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.