mercredi 1 juin 2016

Laravel Scheduler - specify sender when using emailOutputTo()

How to specify sender for email reports which are sent by using emailOutputTo() method of Laravel Scheduler?

Currently from header is empty and I see in Gmail:

enter image description here

enter image description here


My code is:

$schedule->command('some:task')
    ->dailyAt('05:30')
    ->sendOutputTo(config('path.logs') . '/output.log')
    ->emailOutputTo('email@example.com');


I'm using built-in Laravel Mail provider with mailgun driver.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire