Answers for "attach multiple files in mail laravel"

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 "attach multiple files in mail laravel"

Browse Popular Code Answers by Language