Hello Laravel Folks,
How can I specify multiple email addresses in the Mail::queue function?
Do I chain $message->to('email@email.com) together?
Or do I have to foreach and send individual emails to each person?
And yes, there are instances where it's OK to send emails with all the email addresses displayed (when it's not, we'll send them individually).
Thank you, Julie
Looking at this file yes, Mail::to is chainable. If you follow the flow, it returns calling addAddresses that returns $this.
bc and bcc are also chainable, if you need.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community