mail::send laravel code example
Example 1: laravel mail create
php artisan make:mail OrderShipped --markdown=emails.orders.shipped
Example 2: send multiple mail in laravel
$emails = ['[email protected]', '[email protected]','[email protected]'];
Mail::send('emails.welcome', [], function($message) use ($emails)
{
$message->to($emails)->subject('This is test e-mail');
});
var_dump( Mail:: failures());
exit;
Example 3: laravel mailable from
return (new Mail)
->to('[email protected]')
->from('[email protected]');