Laravel gives you three ways to email more than one person. Pass several addresses to Mail::to() (or use cc and bcc) to send one message to all of them, loop over your users and send each a separate copy, or queue the sends so a long list doesn't slow down the request. Which one you want depends on whether recipients should see each other's addresses and how many people you are emailing.
The code below follows the official Laravel mail documentation and uses the current mailable structure, with envelope() and content() methods. Older tutorials, including an earlier version of this one, use a build() method instead.
Quick answer
use Illuminate\Support\Facades\Mail;
// One message, several recipients
Mail::to(['[email protected]', '[email protected]'])
->cc('[email protected]')
->bcc('[email protected]')
->send(new WelcomeMail($user));Everyone in to and cc can see each other's addresses. bcc recipients are hidden. If you are emailing customers or subscribers, don't put them in to or cc. Send each person their own copy, as shown further down.
Step 1: Create the mailable
Generate a mailable class with Artisan:
php artisan make:mail WelcomeMailThis creates app/Mail/WelcomeMail.php. Here is a minimal version that takes a user and renders a Blade view:
<?php
namespace App\Mail;
use App\Models\User;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Content;
use Illuminate\Mail\Mailables\Envelope;
use Illuminate\Queue\SerializesModels;
class WelcomeMail extends Mailable
{
use Queueable, SerializesModels;
public function __construct(
public User $user,
) {}
public function envelope(): Envelope
{
return new Envelope(
subject: 'Welcome to Coders Vibe',
);
}
public function content(): Content
{
return new Content(
view: 'mail.welcome',
);
}
}Public properties on a mailable, like $user here, are available in the view automatically.
Step 2: Create the email view
Create resources/views/mail/welcome.blade.php:
<h1>Hi, {{ $user->name }}</h1>
<p>Welcome aboard. Thanks for signing up.</p>Step 3: Send one email to several recipients
Mail::to() accepts an email address, a user object, or an array of either. You can chain cc() and bcc() the same way:
Mail::to(['[email protected]', '[email protected]'])
->cc($managers)
->bcc($auditors)
->send(new WelcomeMail($user));If your recipients come from the database, pluck the addresses into an array first:
$emails = User::where('is_active', true)->pluck('email')->all();
Mail::to($emails)->send(new WelcomeMail($user));Use this when the people genuinely belong on the same thread, such as a team notification. For anything else, send separate emails.
Step 4: Send a separate email to each recipient
Looping gives every person their own message, with only their address visible:
foreach (User::where('is_active', true)->get() as $user) {
Mail::to($user)->send(new WelcomeMail($user));
}One gotcha from the Laravel docs: the to method adds addresses to the mailable's recipient list. If you create the mailable once, outside the loop, each iteration will also email everyone from the previous iterations. Always create a new mailable inside the loop, as above.
Step 5: Queue the emails for large lists
Sending hundreds of emails inside a web request is slow and fragile. Queue them instead, so a worker sends them in the background:
User::where('is_active', true)->chunkById(200, function ($users) {
foreach ($users as $user) {
Mail::to($user)->queue(new WelcomeMail($user));
}
});If you want a mailable to always be queued, implement the ShouldQueue contract on the class:
use Illuminate\Contracts\Queue\ShouldQueue;
class WelcomeMail extends Mailable implements ShouldQueue
{
// ...
}Queued mail only goes out while a worker is running (php artisan queue:work), and you need a queue connection configured in your .env file.
Step 6: Configure your mail settings
Set your provider's SMTP details in .env. The host and port come from your email provider's documentation:
MAIL_MAILER=smtp
MAIL_HOST=your-smtp-host
MAIL_PORT=587
MAIL_USERNAME=your-username
MAIL_PASSWORD=your-password
[email protected]
MAIL_FROM_NAME="Your App"While developing, set MAIL_MAILER=log to write messages to storage/logs instead of sending them, or use a catch-all inbox service such as Mailtrap. If you want to send through a Gmail account, see how to send email with Gmail SMTP in Laravel.
Step 7: Test it without sending real email
Laravel can fake the mailer in tests and let you assert what would have been sent:
use Illuminate\Support\Facades\Mail;
Mail::fake();
// ...run the code that sends the emails...
Mail::assertSent(WelcomeMail::class, 2);
// or, if you queued them:
Mail::assertQueued(WelcomeMail::class, 2);Limits and good practice
Email providers cap how many messages you can send per second and per day, so check your provider's limits before sending to a large list. If you are sending marketing email to subscribers, use a dedicated email service and include an unsubscribe link in every message.
Frequently asked questions
Should I use bcc or a loop to email many people?
A loop with one email per person is the better choice. Each person gets their own message and nobody's address is exposed. Use bcc only for copies that should stay hidden, like an internal audit address.
How do I send to a list of users from the database?
Either loop over the users and send each one a mailable, or pluck their email addresses into an array and pass it to Mail::to() if one shared message is what you want. For large lists, queue the sends.
Why did people receive the same email more than once?
This is usually the mailable being created outside the loop. The to method keeps adding recipients to the same object, so create a new mailable on each iteration.





