Back to Webmail Lite Support

empty address

Post a reply
502 views
alpapan
alpapan

Hello

Any ideas why the Send email function may be giving this error?

This is my setting for SMTP (you call it 'Sent Folder'). The mail box name is correct.

{mail.gandi.net:465/imap/ssl/debug}Sent

This is the error (empty array?):

Address in mailbox given [] does not comply with RFC 2822, 3.6.2. /var/www/html/thegeneschool/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php line 355

As an email address is tried my raw email address: user@domain.com and putting <> : user@domain.com

Note my username is actually user@domain.com (not just user). Is that perhaps the issue? Is the error due to the From or the To address?

Stack trace:

Swift_RfcComplianceException: Address in mailbox given [] does not comply with RFC 2822, 3.6.2. in /var/www/html/thegeneschool/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php:355
Stack trace:
#0 /var/www/html/thegeneschool/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php(272): Swift_Mime_Headers_MailboxHeader->assertValidAddress('')
#1 /var/www/html/thegeneschool/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php(117): Swift_Mime_Headers_MailboxHeader->normalizeMailboxes(Array)
#2 /var/www/html/thegeneschool/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php(74): Swift_Mime_Headers_MailboxHeader->setNameAddresses(Array)
#3 /var/www/html/thegeneschool/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleHeaderFactory.php(61): Swift_Mime_Headers_MailboxHeader->setFieldBodyModel(Array)
#4 /var/www/html/thegeneschool/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleHeaderSet.php(71): Swift_Mime_SimpleHeaderFactory->createMailboxHeader('To', Array)
#5 /var/www/html/thegeneschool/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleMessage.php(323): Swift_Mime_SimpleHeaderSet->addMailboxHeader('To', Array)
#6 /var/www/html/thegeneschool/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleMessage.php(299): Swift_Mime_SimpleMessage->setTo(Array)
#7 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Mail/Message.php(161): Swift_Mime_SimpleMessage->addTo('', NULL)
#8 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Mail/Message.php(95): Illuminate\Mail\Message->addAddresses('', NULL, 'To')
#9 /var/www/html/thegeneschool/plugins/briddle/mail/controllers/Inbox.php(67): Illuminate\Mail\Message->to('')
#10 [internal function]: Briddle\Mail\Controllers\Inbox->Briddle\Mail\Controllers\{closure}(Object(Illuminate\Mail\Message))
#11 /var/www/html/thegeneschool/vendor/october/rain/src/Mail/Mailer.php(77): call_user_func(Object(Closure), Object(Illuminate\Mail\Message))
#12 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(221): October\Rain\Mail\Mailer->send('briddle.mail::m...', Array, Object(Closure))
#13 /var/www/html/thegeneschool/plugins/briddle/mail/controllers/Inbox.php(69): Illuminate\Support\Facades\Facade::__callStatic('send', Array)
#14 [internal function]: Briddle\Mail\Controllers\Inbox->onSend()
#15 /var/www/html/thegeneschool/modules/backend/classes/Controller.php(573): call_user_func_array(Array, Array)
#16 /var/www/html/thegeneschool/modules/backend/classes/Controller.php(237): Backend\Classes\Controller->runAjaxHandler('onSend')
#17 /var/www/html/thegeneschool/modules/backend/classes/BackendController.php(120): Backend\Classes\Controller->run('index', Array)
#18 [internal function]: Backend\Classes\BackendController->run('briddle/mail/in...')
#19 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): call_user_func_array(Array, Array)
#20 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\Routing\Controller->callAction('run', Array)
#21 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Routing/Route.php(212): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Backend\Classes\BackendController), 'run')
#22 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Routing/Route.php(169): Illuminate\Routing\Route->runController()
#23 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Routing/Router.php(658): Illuminate\Routing\Route->run()
#24 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#25 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(41): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#26 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#27 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#29 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(63): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#32 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#33 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#34 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#35 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
#36 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#37 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(66): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#38 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#40 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#41 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Routing/Router.php(660): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#42 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Routing/Router.php(635): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#43 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Routing/Router.php(601): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#44 /var/www/html/thegeneschool/vendor/october/rain/src/Router/CoreRouter.php(20): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#45 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(176): October\Rain\Router\CoreRouter->dispatch(Object(Illuminate\Http\Request))
#46 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#47 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(46): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#48 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#51 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#52 /var/www/html/thegeneschool/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#53 /var/www/html/thegeneschool/index.php(43): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#54 {main}
alpapan
alpapan

p.s. PHP 7.2

Briddle
Briddle

Hi alpapan,

Yes, it can be tricky to find the correct settings for your server.

Have you tried:

{imap.gandi.net:993/imap/ssl/novalidate-cert/debug}Sent

and:

{mail.gandi.net:993/imap/ssl/novalidate-cert/debug}Sent
Briddle
Briddle

Username is your email: e.g. user@domain.com (no spaces)

alpapan
alpapan

Hello

Yeap, tried both but no change. The address error comes up the same.

Yeap the username is the whole domain name. Fetching the emails work, just sending gives this exception. Is that normally caused by an erroneous 'Sent folder' configuration?

Address in mailbox given [] does not comply with RFC 2822, 3.6.2. /var/www/html/thegeneschool/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php line 355
Briddle
Briddle

Hi,

The “Sent Folder” configuration in my plugin is only used to copy mails to the “Sent folder” on your mail server after sending them. The actual sending uses the mail functionality of October CMS.

This seems to be a config error in the mail settings for October CMS?

alpapan
alpapan

Hello

Thanks for the reply. The October CMS core has been sending emails without issues so far so I doubt it has anything to do with the mail functionality of the core.

1-7 of 7

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.