Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2e7541f

Browse files
committed
Add ListManagementOptions in SES mail driver
1 parent 0008c69 commit 2e7541f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

mail.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,20 @@ To utilize AWS [temporary credentials](https://docs.aws.amazon.com/IAM/latest/Us
139139
'token' => env('AWS_SESSION_TOKEN'),
140140
],
141141

142+
To send `ListManagementOptions` header for [subscription management](https://docs.aws.amazon.com/ses/latest/dg/sending-email-subscription-management.html), you may include `X-SES-LIST-MANAGEMENT-OPTIONS` in the [`headers`](#headers) method:
143+
144+
```php
145+
public function headers(): Headers
146+
{
147+
return new Headers(
148+
text: [
149+
'X-SES-LIST-MANAGEMENT-OPTIONS' => 'contactListName=MyContactList;topicName=MyTopic',
150+
],
151+
);
152+
}
153+
```
154+
155+
142156
If you would like to define [additional options](https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-sesv2-2019-09-27.html#sendemail) that Laravel should pass to the AWS SDK's `SendEmail` method when sending an email, you may define an `options` array within your `ses` configuration:
143157

144158
'ses' => [

0 commit comments

Comments
 (0)