Answers for "laravel 5 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

Code answers related to "laravel 5 mail multiple attachments"

Browse Popular Code Answers by Language