[SOLVED] V9.7.005 Security - create new users ERROR (app_form_add_users)

Hi,

ERROR encountered when SAVE a NEW user as below :

Fatal error: Uncaught Swift_RfcComplianceException: Address in mailbox given [t] 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(‘t’) #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->setFieldBodyModel(Array) #4 C:\Program Files\NetMake\v9-php73\wwwroot\scriptcase in C:\Program Files\NetMake\v9-php73\wwwroot\scriptcase\prod\third\swift\classes\Swift\Mime\Headers\MailboxHeader.php on line 348

Walk through the standard procedure of “Security Module” creation, then tried to CREATE a NEW User, the ABOVE ERROR encountered. Seems without such error , not confirmed, occurred in v9.7.004 or before, it just happen in the latest v9.7.005.

Please comment. Thanks.

rdgs,
Chester

Same here,

I don’t need to send emails to the administrator or users in my current application … So in security module i uncheck “send mail to new user”

You may also delete or comment the sc-sendmail to admin and sc-send-mail new user in the events of this form

Hi herveo,

Yes, when I walk through the Security module program generation, if NOT check the Option of Send email to Administrator/New User, NO SUCH ERROR. But I need to validate the New User email , therefore, I need those feature.

rdgs,
Chester

Of course, have you opened a maintenance ticket with netmake ?

Hi Herveo,

No. I didn’t try it before, how to do ? please advise. Thanks.

rgds,
Chester

If you haven’t got a service level contract you can’t create a ticket, just report the error on this forum.

Noted. Thanks a lot.

Hello, @aducom , @herveo , @Chester_Leung

This problem has been solved in our current version (9.7.007).

  • Fixed problem sending the email from the application “app_form_add_users” in the security module. It will be necessary to recreate the module.

Best regards.

1 Like

Hello, @aducom , @herveo , @Chester_Leung and @yuri_esteves,

I created last week a new security model with a Group type and the same error occured.

Fatal error: Uncaught Swift_RfcComplianceException: Address in mailbox given [] does not comply with RFC 2822, 3.6.2. in C:\Program Files\NetMake\v9-php81\wwwroot\scriptcase\prod\third\swift\classes\Swift\Mime\Headers\MailboxHeader.php:348 Stack trace: #0 C:\Program Files\NetMake\v9-php81\wwwroot\scriptcase\prod\third\swift\classes\Swift\Mime\Headers\MailboxHeader.php(263): Swift_Mime_Headers_MailboxHeader->_assertValidAddress('') #1 C:\Program Files\NetMake\v9-php81\wwwroot\scriptcase\prod\third\swift\classes\Swift\Mime\Headers\MailboxHeader.php(106): Swift_Mime_Headers_MailboxHeader->normalizeMailboxes(Array) #2 C:\Program Files\NetMake\v9-php81\wwwroot\scriptcase\prod\third\swift\classes\Swift\Mime\Headers\MailboxHeader.php(63): Swift_Mime_Headers_MailboxHeader->setNameAddresses(Array) #3 C:\Program Files\NetMake\v9-php81\wwwroot\scriptcase\prod\third\swift\classes\Swift\Mime\SimpleHeaderFactory.php(58): Swift_Mime_Headers_MailboxHeader->setFieldBodyModel(Array) #4 C:\Program Files\NetMake\v9-php81\wwwroot\scriptcase\prod\third\swift\classes\Swift\Mime\SimpleHeaderSet.php(68): Swift_Mime_SimpleHeaderFactory->createMailboxHeader('To', Array) #5 C:\Program Files\NetMake\v9-php81\wwwroot\scriptcase\prod\third\swift\classes\Swift\Mime\SimpleMessage.php(323): Swift_Mime_SimpleHeaderSet->addMailboxHeader('To', Array) #6 C:\Program Files\NetMake\v9-php81\wwwroot\scriptcase\app\sglex11\_lib\lib\php\nm_api.php(1027): Swift_Mime_SimpleMessage->setTo(Array) #7 C:\Program Files\NetMake\v9-php81\wwwroot\scriptcase\app\sglex11\a_form_add_users\a_form_add_users_apl.php(5103): sc_send_mail_api(Array) #8 C:\Program Files\NetMake\v9-php81\wwwroot\scriptcase\app\sglex11\a_form_add_users\a_form_add_users_apl.php(4630): a_form_add_users_apl->send_mail_to_admin() #9 C:\Program Files\NetMake\v9-php81\wwwroot\scriptcase\app\sglex11\a_form_add_users\a_form_add_users_apl.php(1469): a_form_add_users_apl->nm_acessa_banco() #10 C:\Program Files\NetMake\v9-php81\wwwroot\scriptcase\app\sglex11\a_form_add_users\index.php(2821): a_form_add_users_apl->controle() #11 {main} thrown in C:\Program Files\NetMake\v9-php81\wwwroot\scriptcase\prod\third\swift\classes\Swift\Mime\Headers\MailboxHeader.php on line 348

I have the latest version, 9.10.0008.

Best regards,