Answers.Body: <p>The problem is caused by insufficient php memory. My php memory setting was 256MB and when I increased that to 512MB the problem was resolved. I don't know what setting would be 'correct' since I am not keen to retain php memory at 512MB.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-06T22:43:54.337Z
Answers.LastActivityDate: 2017-07-06T22:43:54.337Z
Answers.UserDisplayName: Martin Fuggle
Answers.Body: <p>Whilst increasing php memory solved the problem I was not comfortable in leaving the memory allocation just for Mosaico. So I throttled down the number of emails being sent at a time and reduced the php memory back and I have had no issues since that time. My settings are now php memory 256MB and I send 250 emails at a time.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-25T21:50:16.433Z
Answers.LastActivityDate: 2017-08-25T21:50:16.433Z
Answers.UserDisplayName: Martin Fuggle
Body: <p>I am using Drupal 7.56, CiviCRM 4.7.20 and Mosaico extension 2.0-beta2.1494950412. When sending an email with a few images to ~950 contacts I get an Internal Server Error (500). Removing a few images and the email succeeds. The server is presumably running out of some resource but I have not been able to determine what it is.
  Is anyone else experiencing this issue? If so do you know what resource I need to increase (if indeed that's the problem)?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-07-05T14:48:52.193Z
Comments.Text: Your server logs are probably the best source of information. I'd start with the log for Apache (or whatever your web server is). If you don't find anything there, the CiviCRM or MySQL logs might have something useful.
Comments.UserDisplayName: universalhandle
Tags: <email><mosaico>
Title: Error 500 when using Mosaico with large content and number of users
ThreadText: # Error 500 when using Mosaico with large content and number of users
  
  (Asked by: username_0 on 2017-07-01)
  
  I am using Drupal 7.56, CiviCRM 4.7.20 and Mosaico extension 2.0-beta2.1494950412. When sending an email with a few images to ~950 contacts I get an Internal Server Error (500). Removing a few images and the email succeeds. The server is presumably running out of some resource but I have not been able to determine what it is.
  Is anyone else experiencing this issue? If so do you know what resource I need to increase (if indeed that's the problem)?
  
  **Tags:** email, mosaico
  
  > **Comments:**
  > **username_1**: Your server logs are probably the best source of information. I'd start with the log for Apache (or whatever your web server is). If you don't find anything there, the CiviCRM or MySQL logs might have something useful.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2017-07-06. Score: 1
  
  The problem is caused by insufficient php memory. My php memory setting was 256MB and when I increased that to 512MB the problem was resolved. I don't know what setting would be 'correct' since I am not keen to retain php memory at 512MB.
  
  
  ---
  
  ### Answer by username_0 on 2017-08-25. Score: 1
  
  Whilst increasing php memory solved the problem I was not comfortable in leaving the memory allocation just for Mosaico. So I throttled down the number of emails being sent at a time and reduced the php memory back and I have had no issues since that time. My settings are now php memory 256MB and I send 250 emails at a time.
  
  
  ---
  
  