Sendgrid: Set reply_to to object

Sendgrid는 reply_to 값으로 object를 사용하나 string값이 넘어가 HTTP 400 오류가 발생하는데, 이 부분을 수정합니다.
This commit is contained in:
Lastorder 2020-10-22 11:45:22 +09:00 committed by Lastorder-DC
parent 57dcab75e9
commit aade411188

View file

@ -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.