Answers for "how can we send attached file with notification in gmail in laravel 8"

PHP
0

how can we send attached file with notification in gmail in laravel 8

public function toMail($notifiable)
    {
        return (new MailMessage)
                    ->line('Please download the PDF.')
                    ->attach(public_path($this->filename), [
                        'as' => 'filename.pdf',
                        'mime' => 'text/pdf',
                    ]);
    }
Posted by: Guest on February-03-2021

Code answers related to "how can we send attached file with notification in gmail in laravel 8"

Browse Popular Code Answers by Language