Answers for "send multiple attachment in mail laravel 8"

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 "send multiple attachment in mail laravel 8"

Browse Popular Code Answers by Language