Body: <p>Someone tried to register for an event with a hyphenated last name.  Her email address is first.last-hyphenated@domain.com.  CiviCRM says "Please enter a valid email address" and will not allow her to register.</p>
  
  <p>How can I allow hyphens to be passed through Event Registration and mailing list signups?</p>
  
  <p>I am running CiviCRM 5.23.3 with MySQL 8.0.18 and PHP 7.3.14.</p>
  
  <p>Thank you for your assistance!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-03-31T23:17:04.507Z
Comments.Text: Which CMS and is the event configured to allow creating a user account in the CMS?
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-04-01T00:27:40.107Z
Comments.Text: Hi Demerit.  Thanks for responding.  I am using WordPress and according to the CiviCRM Profiles, all have No account create option selected under "WordPress user account registration option"
Comments.UserDisplayName: Brendan Spaar
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-04-01T00:38:11.093Z
Comments.Text: Ok thanks. It seems to work at https://wpmaster.demo.civicrm.org using https://wpmaster.demo.civicrm.org/civicrm/event/register/?reset=1&id=3 (it seems to be in German at the moment but I don't think that would matter). So either it's fixed in a later version, you have some extension that's causing it, or there's something about the event config on your site that's different. At wpmaster if you configure an event similar to yours are you able to reproduce the problem there?
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-05-18T16:29:33.673Z
Comments.Text: It may not be related to your issue, but please note that CiviCRM doesn't currently support MySQL 8. https://docs.civicrm.org/sysadmin/en/latest/requirements/#mysql-8
Comments.UserDisplayName: William Mortada
Tags: <civievent><contacts><online-registration>
Title: Unable to register for events with hyphenated email address
ThreadText: # Unable to register for events with hyphenated email address
  
  (Asked by: username_0 on 2020-03-31)
  
  Someone tried to register for an event with a hyphenated last name. Her email address is first.last-hyphenated@domain.com. CiviCRM says "Please enter a valid email address" and will not allow her to register.
  
  How can I allow hyphens to be passed through Event Registration and mailing list signups?
  
  I am running CiviCRM 5.23.3 with MySQL 8.0.18 and PHP 7.3.14.
  
  Thank you for your assistance!
  
  **Tags:** civievent, contacts, online-registration
  
  > **Comments:**
  > **username_1**: Which CMS and is the event configured to allow creating a user account in the CMS?  
  > **username_0**: Hi username_1.  Thanks for responding.  I am using WordPress and according to the CiviCRM Profiles, all have No account create option selected under "WordPress user account registration option"  
  > **username_1**: Ok thanks. It seems to work at https://wpmaster.demo.civicrm.org using https://wpmaster.demo.civicrm.org/civicrm/event/register/?reset=1&id=3 (it seems to be in German at the moment but I don't think that would matter). So either it's fixed in a later version, you have some extension that's causing it, or there's something about the event config on your site that's different. At wpmaster if you configure an event similar to yours are you able to reproduce the problem there?  
  > **username_2**: It may not be related to your issue, but please note that CiviCRM doesn't currently support MySQL 8. https://docs.civicrm.org/sysadmin/en/latest/requirements/#mysql-8  
  
  ---
  
  ## 0 answers
  
  