Add user error - multiple admins email notification

Prerequisites:

  • notify admins selection upon creation of new user (option during security module creation)
  • more than 1 admin in the system

Use case:

  • Create a new user - using the auto generated form of the Security module

you get exception and the mail is not send

Blockquote
Fatal error: Uncaught Swift_RfcComplianceException: Address in mailbox given [ { COMMA (,) SEPARATED LIST OF ADMIN EMAILS} ] does not comply with RFC 2822, 3.6.2. in C:\Program Files\NetMake\v9-php73\wwwroot\scriptcase\prod\third\swift\classes\Swift\Mime\Headers\MailboxHeader.php:348 Stack trace: #0 C:\Program Files\NetMake\v9-php73\wwwroot\scriptcase\prod\third\swift\classes\Swift\Mime\Headers\MailboxHeader.php(263): Swift_Mime_Headers_MailboxHeader->_assertValidAddress(‘adminmail@…’) #1 C:\Program Files\NetMake\v9-php73\wwwroot\scriptcase\prod\third\swift\classes\Swift\Mime\Headers\MailboxHeader.php(106): Swift_Mime_Headers_MailboxHeader->normalizeMailboxes(Array) #2 C:\Program Files\NetMake\v9-php73\wwwroot\scriptcase\prod\third\swift\classes\Swift\Mime\Headers\MailboxHeader.php(63): Swift_Mime_Headers_MailboxHeader->setNameAddresses(Array) #3 C:\Program Files\NetMake\v9-php73\wwwroot\scriptcase\prod\third\swift\classes\Swift\Mime\SimpleHeaderFactory.php(58): Swift_Mime_Headers_MailboxHeader->setFieldBodyM in C:\Program Files\NetMake\v9-php73\wwwroot\scriptcase\prod\third\swift\classes\Swift\Mime\Headers\MailboxHeader.php on line 348

Perhaps this module has to join addresses using another delimeter character instead of “,” e.g. “;”

Workaround:
If you just have 1 admin (may refer to a mailing list) then this error does not occur everything proceeds normally. not always feasible but i hope it will soon be corrected