Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

Commit

Permalink
allow logging when MAIL_DRIVER=log (v2)
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswait committed Feb 3, 2022
1 parent 156c6bc commit 9e58984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SendinBlue.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ trait SendinBlue
*/
public function sendinblue($extraFields)
{
if ($this instanceof Mailable && $this->mailDriver() == "sendinblue") {
if ($this instanceof Mailable && ($this->mailDriver() == "sendinblue" || $this->mailDriver() == "log")) {
$this->withSwiftMessage(
function (Swift_Message $message) use ($extraFields) {
$message->embed(
Expand Down

0 comments on commit 9e58984

Please sign in to comment.