public function index()
{
$toEmails = array('123@qq.com','456@126.com','789@qq.com');
//send a message
//Mail::send('user',array('key'=>'value'),function($message){
// $message->to('526682763@qq.com','ikasa')->subject('a new email send to you');
//});
foreach($toEmails as $key=>$email)
{
$data['email'] = $email;
//add to the queue
Mail::queue('user',$data,function($message){
$message->to($email,'ikasa')->subject('please receive this test email');
});
3 个回复
求_败
赞同来自:
俭以养德
赞同来自:
俭以养德
赞同来自: