From aade411188967dce527dee5f2a9fbdcb0bdcb774 Mon Sep 17 00:00:00 2001 From: Lastorder <18280396+Lastorder-DC@users.noreply.github.com> Date: Thu, 22 Oct 2020 11:45:22 +0900 Subject: [PATCH] Sendgrid: Set reply_to to object MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sendgrid는 reply_to 값으로 object를 사용하나 string값이 넘어가 HTTP 400 오류가 발생하는데, 이 부분을 수정합니다. --- common/framework/drivers/mail/sendgrid.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/framework/drivers/mail/sendgrid.php b/common/framework/drivers/mail/sendgrid.php index d62103e45..c46495b1a 100644 --- a/common/framework/drivers/mail/sendgrid.php +++ b/common/framework/drivers/mail/sendgrid.php @@ -119,7 +119,7 @@ class SendGrid extends Base implements \Rhymix\Framework\Drivers\MailInterface $replyTo = $message->message->getReplyTo(); if ($replyTo) { - $data['reply_to'] = array_first_key($from); + $data['reply_to']['email'] = array_first_key($from); } // Set the subject.