laravel-gmail
laravel-gmail copied to clipboard
Cannot set From header
From header doesn't change when it is set using from
method:
$mail = new Mail;
$mail->using('token.json');
$mail->from($senderEmail, $senderName);
$mail->to($userEmail, $userName);
I also tried to use setHeader
, but it didn't work, either.
$mail->setHeader('From', $senderEmail);
How to change From header in the generated email?