Support the ongoing development of Laravel.io →
posted 5 years ago
Last updated 1 year ago.
0
moderator

Is this the exact code? It looks like it try to send to the address a. Do you also have a to?

You can try to already set the address in an array (shouldn't be needed but you never know)

->cc(['[email protected]'])

0

Thanks for the reply Tobias,

Yes, that the exact code, if I use ->cc(['[email protected]']), it give error:

Swift_RfcComplianceException
Address in mailbox given [[] does not comply with RFC 2822, 3.6.2

It's like only read the first string. But when send email via Mail not notification the cc is working well.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

yusidabcs yusidabcs Joined 23 Sep 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.