I have a function that sends an email like this:
Mail::to($email)
->cc($arraywithemails)
->send(new document());
如何将邮箱发送给多个抄送用户?我查过官方文件,但没有任何线索.
I have a function that sends an email like this:
Mail::to($email)
->cc($arraywithemails)
->send(new document());
如何将邮箱发送给多个抄送用户?我查过官方文件,但没有任何线索.
The setAdress() function in Mailable allow you to give an array as argument :
So You should be able to use the function by passing an array as your argument
Mail::to($email)
->cc(['name1@domain.com','name2@domain.com'])
->send(new document());