vemcogroup / laravel-sparkpost-driver

SparkPost driver to use with Laravel
MIT License
40 stars 16 forks source link

Add reply to to payload of transmissions api #19

Closed mostafakram closed 2 years ago

mostafakram commented 2 years ago

The reply_to was not added to the transmissions api from the $message object after the update in v5

We basically add the reply to in the build of the Mailable object as

$this->replyTo($email, $name)

This PR adds it to the content array as mentioned in the docs of sparkpost


             [
                    'from' => $this->getFrom($message),
                    'subject' => $message->getSubject(),
                    'reply_to' => $this->getReplyTo($message),
                    'html' => $message->getHtmlBody(),
                    'text' => $message->getTextBody(),
                    'attachments' => $this->getAttachments($message),
             ]
eldor commented 2 years ago

Thank you for the PR, much appreciated.