Skip to content

The mailchimp-mailer should handle all the possible configuration of the API #40056

Closed
@VincentLanglet

Description

@VincentLanglet

Description
The mailchimp mailer is based on the mandrill API and create a payload
https://github.com/symfony/mailchimp-mailer/blob/5.x/Transport/MandrillApiTransport.php#L77-L83

But this payload could have other values
https://mandrillapp.com/api/docs/messages.html

For instance I'm using a lot track_opens and track_clicks.

$message = [
    'to'           => $recipients,
    'html'         => $body,
    'subject'      => $subject,
    'from_email'   => $fromEmail,
    'attachments'  => $attachments,
    'track_opens'  => true,
    'track_clicks' => true,
];

It would be great to add these two values (and maybe all the possible options of the API).

How should it be implemented ?
Does it require something like Email::getOptions() ?

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