Description
Description
Amazon SES allows you to pass a contact list name and a topic name to easily add (and manage) unsubscribe links (and head 5F96 ers) to sent messages. These options should be passed to the API send email request:
$request['ListManagementOptions'] = [
'ContactListName' => '<contact list name>',
'TopicName' => '<topic name>',
];
With this options AWS will add the unsubscribe header to the sent email and the occurrences of {{amazonSESUnsubscribeUrl}}
will be replaced with the actual unsubscribe url.
The amazon transport currently has no way to add additional params to the request, The configuration set param is loaded from the X-SES-CONFIGURATION-SET
header (defined in Amazon SES SMTP specification). You could define two additional headers (eg: X-SES-CONTACT-LIST-NAME and X-SES-TOPIC-NAME) to define the two additional api params.
Would you accept a PR with this addition?