Answers.Body: <p>If PDF processing is the issue, consider installing <a href="https://civicrm.stackexchange.com/q/10879/12">wkhtmltopdf</a>.  It's much more efficient than the built-in PDF generation.  </p>
  
  <p>It can't ship with CiviCRM because it's written in a compiled language - so unlike CiviCRM, which can run unmodified on Windows, Linux, MacOS, etc., wkhtmltopdf is OS-specific (and to some extent, processor-specific).  However, it's easy to download and tell CiviCRM where to find it.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-19T15:10:46.300Z
Answers.LastActivityDate: 2019-04-19T15:10:46.300Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>Although not a perfect solution, it turns out to be the PDF processing that is causing it to time out (known issue apparently).<br>
  I disabled the PDF generation for emails and everything works fine now.</p>
  
  <p>Thanks!
  Norm</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-18T11:42:48.157Z
Answers.LastActivityDate: 2019-04-18T11:42:48.157Z
Answers.UserDisplayName: Norm Dressler
Body: <p>I'm using wordpress 5.11 and CiviCRM 5.8.2.
  I am trying to get a CiviEvent to send confirmation emails but when I select the confirmation emails, the session times-out for the user (error 504).  The registration does go through, but no email is sent.</p>
  
  <p>Some observations, turning off the confirmation email works.  Registration completes and it goes to the completion page.</p>
  
  <p>I can go into Find Participants, Edit their payment and send a confirmation email from there and it works.</p>
  
  <p>I'm configured to use CiviSMTP as my email host.  I have no issues sending out bulk emails or day to day processing emails like renewal notices.</p>
  
  <p>I have checked the logs and there is nothing reported.  </p>
  
  <p>I found a similar post here that suggested modifying/adding session.saved_path=/my/temp/dir which I put in as displayed here.  I'm not certain that is the correct format.  As displayed it made no difference.  The 504 Timeout is consistent and happens every time.</p>
  
  <p>Any help would be greatly appreciated - this is a big event and it opens on Friday so I would really like to have this working by then.  I don't really want to have to do manual confirmation emails!</p>
  
  <p>Thanks
  Norm</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-17T18:44:37.407Z
Comments.Text: /my/temp/dir usually means /tmp on unix but depends on the hosting setup, e.g. it might be /home/something/private/tmp or something like that. If you can't tell ask the hoster.
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-17T18:52:17.473Z
Comments.Text: /my/temp/dir I added in.  I know my tmp is /home/sporti62/tmp, which is what I used.
Comments.UserDisplayName: Norm Dressler
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-17T19:30:05.273Z
Comments.Text: Ok I'm not sure then what you meant by not being sure about the format. Anyway after editing php.ini you usually also need to restart the webserver, if you haven't already.
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-18T07:22:49.090Z
Comments.Text: Are you sending a pdf confirmation with the mail?  I recall a situation where the pdf creation was failing which then caused the mail to fail.
Comments.UserDisplayName: Aidan
Tags: <civievent><email><confirmation>
Title: CiviEvent Confirmation Email causes Time-Out
ThreadText: # CiviEvent Confirmation Email causes Time-Out
  
  (Asked by: username_0 on 2019-04-17)
  
  I'm using wordpress 5.11 and CiviCRM 5.8.2.
  I am trying to get a CiviEvent to send confirmation emails but when I select the confirmation emails, the session times-out for the user (error 504). The registration does go through, but no email is sent.
  
  Some observations, turning off the confirmation email works. Registration completes and it goes to the completion page.
  
  I can go into Find Participants, Edit their payment and send a confirmation email from there and it works.
  
  I'm configured to use CiviSMTP as my email host. I have no issues sending out bulk emails or day to day processing emails like renewal notices.
  
  I have checked the logs and there is nothing reported.
  
  I found a similar post here that suggested modifying/adding session.saved\_path=/my/temp/dir which I put in as displayed here. I'm not certain that is the correct format. As displayed it made no difference. The 504 Timeout is consistent and happens every time.
  
  Any help would be greatly appreciated - this is a big event and it opens on Friday so I would really like to have this working by then. I don't really want to have to do manual confirmation emails!
  
  Thanks
  username_0
  
  **Tags:** civievent, email, confirmation
  
  > **Comments:**
  > **username_1**: /my/temp/dir usually means /tmp on unix but depends on the hosting setup, e.g. it might be /home/something/private/tmp or something like that. If you can't tell ask the hoster.  
  > **username_0**: /my/temp/dir I added in.  I know my tmp is /home/sporti62/tmp, which is what I used.  
  > **username_1**: Ok I'm not sure then what you meant by not being sure about the format. Anyway after editing php.ini you usually also need to restart the webserver, if you haven't already.  
  > **username_2**: Are you sending a pdf confirmation with the mail?  I recall a situation where the pdf creation was failing which then caused the mail to fail.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_3 on 2019-04-19. Score: 1
  
  If PDF processing is the issue, consider installing [wkhtmltopdf](https://civicrm.stackexchange.com/q/10879/12). It's much more efficient than the built-in PDF generation.
  
  It can't ship with CiviCRM because it's written in a compiled language - so unlike CiviCRM, which can run unmodified on Windows, Linux, MacOS, etc., wkhtmltopdf is OS-specific (and to some extent, processor-specific). However, it's easy to download and tell CiviCRM where to find it.
  
  
  ---
  
  ### Answer by username_0 on 2019-04-18. Score: 1
  
  Although not a perfect solution, it turns out to be the PDF processing that is causing it to time out (known issue apparently).  
  I disabled the PDF generation for emails and everything works fine now.
  
  Thanks!
  username_0
  
  
  ---
  
  