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

[9.x] Sesv2client #37878

Merged
merged 2 commits into from
Jul 1, 2021
Merged

[9.x] Sesv2client #37878

merged 2 commits into from
Jul 1, 2021

Conversation

fideloper
Copy link
Contributor

@fideloper fideloper commented Jul 1, 2021

This PR updates the Mail SesTransport class to use the newer Aws\SesV2\SesV2Client class.

S3 docs on the AWS PHP SDK's sendEmail() method here.

There is no sendRawEmail() method on the V2 client.

Documentation / Configuration changes

Just a few notes on documentation updates so you can also see the changes in configuration.

The documentation to updates needed will be from https://laravel.com/docs/8.x/mail#ses-driver

-If you would like to define [additional options](https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-email-2010-12-01.html#sendrawemail) that Laravel should pass to the AWS SDK's `SendRawEmail` method when sending an email, you may define an `options` array within your `ses` configuration:

+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:
'ses' => [
    'key' => env('AWS_ACCESS_KEY_ID'),
    'secret' => env('AWS_SECRET_ACCESS_KEY'),
    'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
    'options' => [
        'ConfigurationSetName' => 'MyConfigurationSet',
-        'Tags' => [
+        'EmailTags' => [
            ['Name' => 'foo', 'Value' => 'bar'],
        ],
    ],
],

@fideloper fideloper changed the title Sesv2client [master] Sesv2client Jul 1, 2021
@GrahamCampbell GrahamCampbell changed the title [master] Sesv2client [9.x] Sesv2client Jul 1, 2021
@GrahamCampbell
Copy link
Member

-        'EmailTags' => [

That line needs a + instead of a -.

@taylorotwell taylorotwell merged commit fb33213 into laravel:master Jul 1, 2021
taylorotwell pushed a commit to laravel/docs that referenced this pull request Jul 1, 2021
@fideloper fideloper deleted the sesv2client branch July 1, 2021 13:44
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.

4 participants