Body: <p>I have two versions of our site - a live one and a development one. The dev one is a copy of the live site, although in maintenance mode so that it's not publicly available. </p>
  
  <p>If I do a test sign up for an event on the live site, I get the email confirmation (receipt). If I do the same on the dev site, no email receipt is received. I did a test of the mail settings on the dev site and I get that email.</p>
  
  <p>Any idea what could be causing the emails not to be sent? Thanks!</p>
  
  <p>This is not a scheduled reminder - it's the email receipt that goes out when someone signs up for an email. The one you configure under "Confirmation Email" on the "Online Registration" tab.</p>
  
  <p>The differences between the live and dev sites: settings files changed to point to right databases, URL, Drupal put into maintenance mode, search engines can't access the site, CiviCRM upgraded from 4.7.22 to 4.7.30.</p>
  
  <p>CMS: Drupal; CiviCRM: 4.7.30</p>
  
  <p><a href="https://i.sstatic.net/A2JVz.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/A2JVz.jpg" alt="Send test email"></a></p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-15T23:26:29.043Z
Comments.Text: since it isn't 'civimail' per se that is sending out the confirmation can you a/ tweak your tags for this, b/ be clearer about what "I did a test of the mail settings" means. Do you get receipts from a Contribution page. Do you get an email if you use Activity = Send Email etc etc
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-15T23:39:06.217Z
Comments.Text: It was the send test email settings. I included a screenshot of the page above. We don't actually use contributions on this site since it's a business site. So I don't have any contribution pages set up. I did an Activity and the email from there sent. I'll see about setting up a contribution page to test.
Comments.UserDisplayName: Jenni Simonis
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-15T23:41:50.560Z
Comments.Text: Nope, nothing from a contribution page, either.
Comments.UserDisplayName: Jenni Simonis
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-16T02:44:34.910Z
Comments.Text: Not that you haven't asked yourself this already but is it an EXACT duplicate of the live site? You didn't alter any settings - like in the civicrm settings file? Last thought (I'm newer to Drupal so this is a stab) does being in maintenance mode have anything to do with it? Is it perhaps writing emails to a log file instead since you're in maintenance mode?
Comments.UserDisplayName: RayWright
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-16T03:41:13.557Z
Comments.Text: The Title of this question is "Event registration emails" which confuses me and may need rethinking.
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-16T03:42:10.707Z
Comments.Text: And in the question "If I do a test sign up for an event on the live site, I get the email confirmation" again this does not sound like CiviMail, it sounds like either System Template Messages or Scheduled Reminders.
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-17T12:03:38.627Z
Comments.Text: Yes, event registration emails (receipts) aren't sending - if someone registers for an event, no email goes out. Not to the recipient, not to the person who is CC'd to receive them.
Comments.UserDisplayName: Jenni Simonis
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-17T12:04:39.757Z
Comments.Text: The system template message was identical on both sites. I even reset the dev site to the default email for the online receipts. Still nothing. It's not a scheduled reminder - it's the receipt that sends after you sign up for an event.The one that you control on the event's config page where you tell it whether to send a receipt or not.
Comments.UserDisplayName: Jenni Simonis
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-17T12:05:31.783Z
Comments.Text: It's an almost exact copy. The only difference between the two is that I edited the Drupal and CiviCRM files to point to the correct database and URL. And it's always in maintenance mode. I test emails on there all the time and they send fine. This is the first time we've had issues with them not sending. Maintenance mode just means that you can only see the site if you're logged in and have permission to see it. Everything else on the site works the same.
Comments.UserDisplayName: Jenni Simonis
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-17T12:13:51.040Z
Comments.Text: Actually, I take that back - the live site runs 4.7.22 and the dev site is running 4.7.30. I upgraded Civi after doing the duplication. I can't test it with an exact copy of 4.7.22 because for some reason the site keeps trying to use the wrong database user even though the settings files have that info right and I cleared the cache (I have up another issue about that). Upgrading fixed that issue.
Comments.UserDisplayName: Jenni Simonis
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-17T22:11:06.207Z
Comments.Text: Quite a big update - are you using default SysTplMsg for events?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-19T02:01:54.083Z
Comments.Text: Yes, it's the default. I reset the messages on the dev site so that it always has the latest features/code for me to work with.
Comments.UserDisplayName: Jenni Simonis
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-04-18T12:59:28.410Z
Comments.Text: We had a similar issue. We used PayPal processor and no error was reported. However, using dummy processor we got the below error:
  Call to undefined function mb_strtoupper() in <b>/home/<website>/public_html/sites/all/modules/civicrm/packages/html2text/rcube_html2text.php
  
  It turned out that the mbstring extension for PHP was not enabled on the server. After configuring the "php-mbstring" extension emails started to work.
  
  Note that we were getting contribution receipts without "php-mbstring"
  
  Hope this helps
Comments.UserDisplayName: Kurund Jalmi
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-04-19T00:56:35.667Z
Comments.Text: It's the same server and the exact same settings across both sites. I finally just restored it and did a version by version update. Somewhere along the lines it appears there was a break in one of the versions.
Comments.UserDisplayName: Jenni Simonis
Tags: <civievent>
Title: Event confirmation receipt emails not sending
ThreadText: # Event confirmation receipt emails not sending
  
  (Asked by: username_0 on 2018-02-15)
  
  I have two versions of our site - a live one and a development one. The dev one is a copy of the live site, although in maintenance mode so that it's not publicly available.
  
  If I do a test sign up for an event on the live site, I get the email confirmation (receipt). If I do the same on the dev site, no email receipt is received. I did a test of the mail settings on the dev site and I get that email.
  
  Any idea what could be causing the emails not to be sent? Thanks!
  
  This is not a scheduled reminder - it's the email receipt that goes out when someone signs up for an email. The one you configure under "Confirmation Email" on the "Online Registration" tab.
  
  The differences between the live and dev sites: settings files changed to point to right databases, URL, Drupal put into maintenance mode, search engines can't access the site, CiviCRM upgraded from 4.7.22 to 4.7.30.
  
  CMS: Drupal; CiviCRM: 4.7.30
  
  [![Send test email](https://i.sstatic.net/A2JVz.jpg)](https://i.sstatic.net/A2JVz.jpg)
  
  **Tags:** civievent
  
  > **Comments:**
  > **username_1**: since it isn't 'civimail' per se that is sending out the confirmation can you a/ tweak your tags for this, b/ be clearer about what "I did a test of the mail settings" means. Do you get receipts from a Contribution page. Do you get an email if you use Activity = Send Email etc etc  
  > **username_0**: It was the send test email settings. I included a screenshot of the page above. We don't actually use contributions on this site since it's a business site. So I don't have any contribution pages set up. I did an Activity and the email from there sent. I'll see about setting up a contribution page to test.  
  > **username_0**: Nope, nothing from a contribution page, either.  
  > **username_2**: Not that you haven't asked yourself this already but is it an EXACT duplicate of the live site? You didn't alter any settings - like in the civicrm settings file? Last thought (I'm newer to Drupal so this is a stab) does being in maintenance mode have anything to do with it? Is it perhaps writing emails to a log file instead since you're in maintenance mode?  
  > **username_1**: The Title of this question is "Event registration emails" which confuses me and may need rethinking.  
  > **username_1**: And in the question "If I do a test sign up for an event on the live site, I get the email confirmation" again this does not sound like CiviMail, it sounds like either System Template Messages or Scheduled Reminders.  
  > **username_0**: Yes, event registration emails (receipts) aren't sending - if someone registers for an event, no email goes out. Not to the recipient, not to the person who is CC'd to receive them.  
  > **username_0**: The system template message was identical on both sites. I even reset the dev site to the default email for the online receipts. Still nothing. It's not a scheduled reminder - it's the receipt that sends after you sign up for an event.The one that you control on the event's config page where you tell it whether to send a receipt or not.  
  > **username_0**: It's an almost exact copy. The only difference between the two is that I edited the Drupal and CiviCRM files to point to the correct database and URL. And it's always in maintenance mode. I test emails on there all the time and they send fine. This is the first time we've had issues with them not sending. Maintenance mode just means that you can only see the site if you're logged in and have permission to see it. Everything else on the site works the same.  
  > **username_0**: Actually, I take that back - the live site runs 4.7.22 and the dev site is running 4.7.30. I upgraded Civi after doing the duplication. I can't test it with an exact copy of 4.7.22 because for some reason the site keeps trying to use the wrong database user even though the settings files have that info right and I cleared the cache (I have up another issue about that). Upgrading fixed that issue.  
  > **username_1**: Quite a big update - are you using default SysTplMsg for events?  
  > **username_0**: Yes, it's the default. I reset the messages on the dev site so that it always has the latest features/code for me to work with.  
  > **username_3**: We had a similar issue. We used PayPal processor and no error was reported. However, using dummy processor we got the below error: Call to undefined function mb_strtoupper() in <b>/home/<website>/public_html/sites/all/modules/civicrm/packages/html2text/rcube_html2text.php  It turned out that the mbstring extension for PHP was not enabled on the server. After configuring the "php-mbstring" extension emails started to work.  Note that we were getting contribution receipts without "php-mbstring"  Hope this helps  
  > **username_0**: It's the same server and the exact same settings across both sites. I finally just restored it and did a version by version update. Somewhere along the lines it appears there was a break in one of the versions.  
  
  ---
  
  ## 0 answers
  
  