Support

Home Forums Event Espresso Premium Split: Duplicate emails

Split: Duplicate emails

Posted: August 29, 2016 at 12:24 pm

Viewing 11 reply threads


Kyle Benton

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!


Lorenzo Orlando Caum

  • Support Staff

August 29, 2016 at 1:02 pm

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.


Lorenzo


Kyle Benton

August 30, 2016 at 11:14 am

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!


Josh

  • Support Staff

August 31, 2016 at 9:48 am

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!

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 [CO_FORMATTED_EMAIL] short code in it, then you’ll need to make sure there’s a valid email address set in the Event Espresso > General Settings > Primary Contact Email field.


Kyle Benton

August 31, 2016 at 1:49 pm

Hi Josh,

For “Registration Pending Payment” the To field is [PRIMARY_REGISTRANT_EMAIL] for Primary Registrant & [EVENT_AUTHOR_FORMATTED_EMAIL] for Event Admin. The From field is [CO_FORMATTED_EMAIL] for both. In General Settings > Primary Contact Email, it is set to admin@mydomain.com (with the domain of the website in place of mydomain.com).

Should I just try using the admin@ email address directly in the From field instead of the shortcode? Any other possibilities or suggestions?

Thanks!


Josh

  • Support Staff

August 31, 2016 at 2:13 pm

Should I just try using the admin@ email address directly in the From field instead of the short code?

That might help.

Any other possibilities or suggestions?

You could use [CO_EMAIL] instead of [CO_FORMATTED_EMAIL].


Kyle Benton

September 1, 2016 at 5:24 pm

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?


Lorenzo Orlando Caum

  • Support Staff

September 1, 2016 at 5:28 pm

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.


Lorenzo


Kyle Benton

September 16, 2016 at 5:28 pm

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.


Josh

  • Support Staff

September 19, 2016 at 7:05 pm

You can check your PHP error log for any fatal errors when wp_mail() runs.


Kyle Benton

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:
Premature end of script headers: index.php
Premature end of script headers: admin-ajax.php

I was unable to perform many tasks from the backend of the website because it would shoot these errors and send me to a 404 page.

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!


Josh

  • Support Staff

September 27, 2016 at 8:48 am

Thanks for taking the time to post an update with what you found.

Viewing 11 reply threads

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.

Event Espresso