Trying to add an email handler to a form using a select menu of email addresses that I created as an Option. After configuring the email handler to use this Option, I click Save, and the animated spinner appears for a second or two, then goes away and nothing else happens. The handler does not save, and the only option is to click the "X" in the upper-right to close the config window. I've gone through a lot of troubleshooting, trying every permutation of options I could think of, but I'm still getting the same results.
Further information:
1.) This issue is happening on two separate, unrelated Drupal sites, one on a localhost on my personal laptop at home, the other on a configured server at work. Both are WAMP environments with Composer, Drush, and Git configured.
2.) I had previously installed the patch to allow "Disable saving of submissions" on the server at work, but backed out of that and retested with the same results: unable to save email handler with a select menu of email recipients.
3.) After clicking the Save button, the configuration window is suddenly surrounded by a blue border, and two rectangular areas appear at the bottom. Knowing that this is too weird to just describe, here is a screenshot that shows what I'm talking about:

| Comment | File | Size | Author |
|---|---|---|---|
| #15 | can_t_add_email_handler-2875371-15.patch | 13.92 KB | jrockowitz |
| #13 | can_t_add_email_handler-2875371-12.patch | 11.68 KB | jrockowitz |
| #10 | can_t_add_email_handler-2875371-9.patch | 9.42 KB | jrockowitz |
| #7 | can_t_add_email_handler-2875371-6.patch | 8.94 KB | jrockowitz |
| webform-handler.jpg | 81.17 KB | kduryee |
Comments
Comment #2
kduryee commentedEven more additional information: I just discovered an error message in the logs that I somehow didn't see in all my troubleshooting - apparently there is some code in core that doesn't like dots in email addresses. The listed email address is the first one in the select menu, I starred out the username below:
Type: php
Date: Tuesday, May 2, 2017 - 15:32
User: admin
Location: http://xxxxx/admin/structure/webform/manage/appeal_form/handlers/add/ema...
Referrer http://xxxxx/admin/structure/webform/manage/appeal_form/handlers
Message Drupal\Core\Config\ConfigValueException: *****@xxxx.xxx key contains a dot which is not supported. in Drupal\Core\Config\ConfigBase->validateKeys() (line 211 of D:\server\www\core\lib\Drupal\Core\Config\ConfigBase.php).
Severity: Error
Comment #3
jrockowitz commentedYep, I know what the issue is. It is not exactly easy to fix but it is fixable.
Basically the below YAML config...
Needs to be converted to...
Comment #4
kduryee commentedComment #5
jrockowitz commented@see Dots are explicitly forbidden in configuration data keys now
Comment #7
jrockowitz commentedComment #10
jrockowitz commentedComment #13
jrockowitz commentedComment #15
jrockowitz commentedSame patch with unit tests.
Comment #17
jrockowitz commentedI committed the patch. Please download and review the latest dev.
Comment #18
kduryee commentedBeautiful! Works like a charm. Thank you!