Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reply to to payload of transmissions api #19

Merged
merged 1 commit into from
Mar 2, 2022

Conversation

mostafakram
Copy link
Contributor

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 eldor merged commit a645789 into vemcogroup:master Mar 2, 2022
@eldor
Copy link
Contributor

eldor commented Mar 2, 2022

Thank you for the PR, much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants