Skip to content

Conversation

@fideloper
Copy link
Contributor

@fideloper fideloper commented Jul 1, 2021

The parameters and tests were updated to use the correct array keys needed for the newer SES client.

This PR does 2 things:

  1. Uses the correct parameters to send a raw email 😅
  2. Removes the FromEmailAddress parameter (explanation below)

@fideloper
Copy link
Contributor Author

fideloper commented Jul 1, 2021

Dropping the FromEmailAddress parameter:

Using the FromEmailAddress parameter appears to over-writes the From address set in the Raw email headers.

This has the unwanted affect of removing the name portion of the From email (e.g. name <[email protected]> becomes [email protected]).

So I believe we can drop that parameter.

It's seemingly not the same as the old API's Source which is required as a fallback if no From is set in the raw email.

Docs for comparison of relevant explanation:

SesClient::sendRawEmail()

Source: The identity's email address. If you do not provide a value for this parameter, you must specify a "From" address in the raw text of the message. (You can also specify both.)

SesV2Client::sendEmail()

FromEmailAddress: The email address that you want to use as the "From" address for the email. The address that you specify has to be verified.

@fideloper fideloper marked this pull request as ready for review July 1, 2021 18:43
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.

3 participants