Support the ongoing development of Laravel.io →
posted 11 years ago
Mail

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

Last updated 3 years ago.
0

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.

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

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.

© 2025 Laravel.io - All rights reserved.