Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.7] Add options for SES Mailer #25536

Merged
merged 2 commits into from
Sep 10, 2018
Merged

Conversation

CyrilMazur
Copy link
Contributor

This PR allows the developer to add options to the SES mailer, in a similar fashion that is already possible with SparkPost mailer.

Developer may add their options into config/services.php like so:

    'ses' => [
        'key' => env('AWS_S3_KEY'),
        'secret' => env('AWS_S3_SECRET'),
        'region' => env('AWS_S3_REGION', 'eu-west-1'),
        'options' => [
            'ConfigurationSetName' => 'Default',
            'Tags' => [
                [
                    'Name' => 'foo',
                    'Value' => 'bar',
                ]
            ],
        ],
    ],

This is particularly useful for ConfigurationSetName (needed for SES to send notifications for open and click events) and Tags.

If merged, I will subsequently send a PR for updating the doc.

@CyrilMazur CyrilMazur changed the title Add options for SES Mailer [5.7] Add options for SES Mailer Sep 9, 2018
@taylorotwell taylorotwell merged commit b37b7ca into laravel:5.7 Sep 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants