Support

Home Forums Event Espresso Premium emails sending, but getting error code on page

emails sending, but getting error code on page

Posted: February 4, 2016 at 9:33 am

Viewing 8 reply threads


Angus Russell

February 4, 2016 at 9:33 am

I’ve been trying to send emails (and they are going, someone complained of getting 5!) but all I see is the error code, page not available.

What could be causing this and how do I fix it?

Server issue, or settings? It was working, now not.

Thanks


Lorenzo Orlando Caum

  • Support Staff

February 4, 2016 at 10:32 am

Hi Angus,

…but all I see is the error code, page not available.

The above sounds like there is an issue with the server at the moment.

How are you sending the registrants/attendees emails?


Lorenzo


Angus Russell

February 8, 2016 at 3:46 am

through the bulk mail “email attendees”.

Am also following with the server, but they are sloooooooooow!

Thanks


Lorenzo Orlando Caum

  • Support Staff

February 8, 2016 at 7:07 am

Hi Angus, did the web host follow up with more information?

We generally recommend a transactional email service (https://eventespresso.com/wiki/postmark-app-mandrill-transactional-email-handling-services/) when there are sporadic email issues.

However, page not available could be something else occurring on the server.


Lorenzo


Angus Russell

February 8, 2016 at 8:39 am

We set up Mandrill ages ago, so it should have sent via Mandrill from the email attendees link, correct?

thanks


Josh

  • Support Staff

February 8, 2016 at 1:45 pm

Hi Angus,

Since you were trying to send emails through the bulk send feature, it may be timing out while all of those emails are getting processed before it sends via the wp_mail() function.

May I ask about how many emails you are trying to send in one go?


Angus Russell

February 9, 2016 at 2:16 am

About 250-300 I recell correctly.

Thanks


Tony

  • Support Staff

February 9, 2016 at 2:54 am

Hi Angus,

With that amount of emails you are likely hitting the server max_execution time value and that’s why you see an error.

Most web hosts set a max_execution time of 30 seconds on the server, this limit applies to any function that does a single task. So lets say each email takes 250 milliseconds (0.25 seconds) to pull in the information from the database, build the email content and then send the email over to mandrill.

30 seconds / 0.25 seconds = 120

That means you can send roughly 120 emails before the max_execution limit is reached, the script will have sent as many emails as it can in that time but then the server forces it to stop and shows you an error page.

The way to work around that is to send the emails in batches, rather than selecting all 250-300 emails at once, try selecting the first 100 and send that batch, if that works, do the next 100 and so on.

(The numbers provided above are an example, in reality it could take more or less time to build each email, it depends on the server and the load it is under)


Angus Russell

February 9, 2016 at 10:21 pm

Got it, thanks for the explanation.

Viewing 8 reply threads

The support post ‘emails sending, but getting error code on page’ 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