8000 Amazon SES transport list management options · Issue #39864 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Amazon SES transport list management options #39864
Closed
@pupaxxo

Description

@pupaxxo

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0