Reputation: 2232
Will this work?
$email_address = '[email protected], [email protected]';
Mail::to($email_address)->send(new EmailTemplate($emailObject));
I've been googling around but I cannot find a definite answer.
Upvotes: 0
Views: 61
Reputation: 129
$email_address = ['[email protected]','[email protected]'];
foreach($email_address as $email)
{
Mail::to($email)->send(new EmailTemplate($emailObject));
}
Upvotes: 1
Reputation: 9171
It should work better with an array:
$email_address = ['[email protected]', '[email protected]'];
Mail::to($email_address)->send(new EmailTemplate($emailObject));
Upvotes: 2