Posted: 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 |
Hi Angus,
The above sounds like there is an issue with the server at the moment. How are you sending the registrants/attendees emails? — |
|
|
through the bulk mail “email attendees”. Am also following with the server, but they are sloooooooooow! Thanks |
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. — |
|
|
We set up Mandrill ages ago, so it should have sent via Mandrill from the email attendees link, correct? thanks |
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? |
|
|
About 250-300 I recell correctly. Thanks |
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) |
|
|
Got it, thanks for the explanation. |
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.