jeudi 28 juin 2018

Laravel: Address in mailbox given [] does not comply with RFC 2822

I send queued emails with my Laravel app. It usually works, however this one does not get out:

Address in mailbox given [] does not comply with RFC 2822, 3.6.2. {"exception":"[object] (Swift_RfcComplianceException(code: 0): Address in mailbox given [] does not comply with RFC 2822, 3.6.2. at /is/htdocs/*****/www/memberportal/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php:354)

As far as I understand, it tries to send something to an empty email which of course not comply with RFC. This is the exact command that I found in the jobs table:

{
"displayName":"App\\Mail\\OrderSeals",
"job":"Illuminate\\Queue\\CallQueuedHandler@call",
"maxTries":null,
"timeout":null,
"timeoutAt":null,
"data":{
"commandName":"Illuminate\\Mail\\SendQueuedMailable",
"command":"O:34:\"Illuminate\\Mail\\SendQueuedMailable\":3:{s:8:\"mailable\";O:19:\"App\\Mail\\OrderSeals\":28:{s:9:\"firstLine\";s:14:\"Dear Max,\";s:6:\"paypal\";b:1;s:8:\"mainText\";
  s:121:\"enclosed your find your the attachment.\n\”This message was created automatically\"
  ;s:29:\"\u0000App\\Mail\\OrderSeals\u0000filePath\";s:99:\"\/is\/htdocs\/************\/www\/memberportal\/storage\/app\/document\/very_special.pdf\"
  ;s:29:\"\u0000App\\Mail\\OrderSeals\u0000subject2\";s:22:\"The document\";
  s:4:\"from\";
  a:0:{}s:2:\"to\";
  a:1:{i:0;a:2:{s:4:\"name\";s:15:\"Max Mustermann\";s:7:\"address\";s:21:\"max@gmail.com\";}}s:2:\"cc\";a:0:{}s:3:\"bcc\"
  ;a:0:{}s:7:\"replyTo\";a:0:{}s:7:\"subject\";N;s:11:\"\u0000*\u0000markdown\";N;s:4:\"view\";N;s:8:\"textView\";N;s:8:\"viewData\";a:0:{}s:11:\"attachments\";
  a:0:{}s:14:\"rawAttachments\";a:0:{}s:9:\"callbacks\";a:0:{}s:10:\"connection\";N;s:5:\"queue\";
  N;s:15:\"chainConnection\";N;s:10:\"chainQueue\";N;s:5:\"delay\";N;s:7:\"chained\";a:0:{}}s:5:\"tries\";N;s:7:\"timeout\";N;}"
 }
}

I do not fully understand the encryption. But I can see that address is set to max@gmail.com which is correct (real mail has been changed). Is maybe the cc or bbc set to an empty mail? Can I fix this command, so that the email will go out?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2tO17Ys
via IFTTT

Aucun commentaire:

Enregistrer un commentaire