From 807c1e4db3e5d2971438e2323ec754793fbc853d Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 25 Apr 2018 15:50:22 +0300 Subject: [PATCH] Fix for Postmark from --- app/Ninja/Mailers/Mailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Ninja/Mailers/Mailer.php b/app/Ninja/Mailers/Mailer.php index a4a503f6f8..f470afbaee 100644 --- a/app/Ninja/Mailers/Mailer.php +++ b/app/Ninja/Mailers/Mailer.php @@ -154,7 +154,7 @@ class Mailer $client = new PostmarkClient(config('services.postmark')); $message = [ 'To' => $toEmail, - 'From' => "{$fromName} <{$fromEmail}>", + 'From' => sprintf('"%s" <%s>', addslashes($fromName), $fromEmail), 'ReplyTo' => $replyEmail, 'Subject' => $subject, 'TextBody' => $textBody,