Posted: August 29, 2016 at 12:24 pm
|
I’m also experiencing the duplicate emails. I have EE4 4.9.1 with WP version 4.6, single site, built-in email server, “on the same request,” DreamHost shared hosting. I have PayPal & Check payment options. When someone uses the PayPal option, only 1 email is sent. When Check payment option is selected, both admin and registrant receive at least 2 duplicate emails, sometimes up to 5, on one occasion 17 emails! Any help would be appreciated. Thanks! |
Hi Kyle, Is your site running any caching services? For example, I found a prior support post where a member was using a specific Dreamhost hosting plan that had built-in Varnish which could not be turned off. — |
|
|
Hi Lorenzo, Yes, I have WP Super Cache running with the recommended settings for EE. I checked with DreamHost, and there is no built-in cache running for my hosting plan. But they did mention that my website is “reaching the resource memory limit” and DH has a process watcher that will kill some tasks in order to lower usage. I’m not sure if this has something to do with it. Event Espresso 4 does seem like it uses a lot more resources than 3 and causes the website to load very slowly. I’ve also looked at your recommendations for speeding up my website, but it seems like, unless I have more powerful hosting, this plugin will cause the website to run slow. Could this have something to do with multiple emails? Thanks! |
The Check payment option will trigger the registration pending payment message if the registration isn’t automatically approved. If your event is set up that way, then you should check the To and From fields in the registration pending payment message templates and make sure they’re set to use valid email addresses for the To and From fields. For example, if the From field has the |
|
|
Hi Josh, For “Registration Pending Payment” the To field is Should I just try using the admin@ email address directly in the From field instead of the shortcode? Any other possibilities or suggestions? Thanks! |
That might help.
You could use [CO_EMAIL] instead of [CO_FORMATTED_EMAIL]. |
|
|
That did not help. For some reason after making that change I started getting multiple Mailer-Daemon notices and the messages were never delivered. I have a feeling it has to do with EE loading slowly, demanding lots of resources on my hosting & timing out. Thoughts? |
Hi Kyle, Could you try setting up a free transactional email service like SendGrid (https://gist.github.com/lorenzocaum/4677f472b012a5a88630) or Mailgun (https://gist.github.com/lorenzocaum/cf43644f4b5c88bb0e647a18ee1ebe13)? That will take over sending emails from the local email server. I use Sendgrid for my personal WordPress projects. — |
|
|
Sorry for the delayed response. I signed up for and set up SendGrid, per your instructions, and it did not help the issue. I changed default registration status to “approved” for all events so there is only 1 template that should be sent. I just tested and both admin and recipient received 2 identical emails each. I still think it has to do with limited resources on my hosting account, but can’t be 100% sure unless I upgrade to a VPS. Any recommendations other than upgrading my hosting? Thanks. |
You can check your PHP error log for any fatal errors when wp_mail() runs. |
|
|
September 26, 2016 at 11:26 am I ended up copying the website onto my other host, and this seems to have dramatically improved the page loading speed and fixed the duplicate messaging issues. Everything appears to be working normal now. Just for anyone who might experience the same problems, I was using DreamHost’s shared hosting. I have a few other low traffic WP sites on this hosting plan, none of which were having issues. Only my website with EE4 was having problems. Checking the error logs, the main errors were: I manually transferred an exact copy of the website & database from DH to HostGator’s Business shared hosting-where I have a couple of higher traffic websites hosted-yet I experienced much faster page loading and no issues so far. Thanks for the support EE team! |
Thanks for taking the time to post an update with what you found. |
|
The support post ‘Split: Duplicate emails’ 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.