Skip to content

Commit

Permalink
Add optional ConfirmationPersonalNote to createSenderSignature (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-davidjones authored May 8, 2024
1 parent 3c2c848 commit bf81875
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Postmark/PostmarkAdminClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,14 @@ public function getSenderSignature(int $id): PostmarkSenderSignature
*
* @throws PostmarkException
*/
public function createSenderSignature(string $fromEmail, string $name, string $replyToEmail = null, string $returnPathDomain = null): PostmarkSenderSignature
public function createSenderSignature(string $fromEmail, string $name, string $replyToEmail = null, string $returnPathDomain = null, string $confirmationPersonalNote = null): PostmarkSenderSignature
{
$body = [];
$body['fromEmail'] = $fromEmail;
$body['name'] = $name;
$body['replyToEmail'] = $replyToEmail;
$body['returnPathDomain'] = $returnPathDomain;
$body['confirmationPersonalNote'] = $confirmationPersonalNote;

return new PostmarkSenderSignature((array) $this->processRestRequest('POST', '/senders/', $body));
}
Expand Down

0 comments on commit bf81875

Please sign in to comment.