欢迎各位兄弟 发布技术文章
这里的技术是共享的
正确答案
$emails = ['myoneemail@esomething.com', 'myother@esomething.com','myother2@esomething.com'];
Mail::send('emails.welcome', [], function($message) use ($emails)
{
$message->to($emails)->subject('This is test e-mail');
});
var_dump( Mail:: failures());
exit;
正确答案
Mail::to($email)
->cc(['name1@domain.com','name2@domain.com'])
->send(new document());
来自
Mail::send('mail', array('key' => $todos1), function($message) {
$message->to('Hello@example.com')
->bcc(array('TEST@example.com','TEST1@example.com','TEST2@example.com','TEST3@example.com'))
->subject('Welcome!');
来自
$this cc(string|array $address, string|null $name = null)
Add a carbon copy to the message.
$this bcc(string|array $address, string|null $name = null)
来自 https://laravel.com/api/5.3/Illuminate/Mail/Message.html#method_to