Answers for "laravel mail multiple attachments"

PHP
1

attach multiple files in laravel mailable

public function build()
{
    $email = $this->view('emails.employment_mailview')->subject('Employment Application');

    // $attachments is an array with file paths of attachments
    foreach($attachments as $filePath){
        $email->attach($filePath);
    }
    return $email;
}
Posted by: Guest on November-20-2020
3

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;
Posted by: Guest on October-13-2020

Code answers related to "laravel mail multiple attachments"

Browse Popular Code Answers by Language