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

Rust: Updated send-email.rs for Contact list with more that one contact, SES #5202

Merged
merged 3 commits into from
Sep 13, 2023

Conversation

d-ufrik
Copy link
Contributor

@d-ufrik d-ufrik commented Aug 1, 2023

Fixed.
cs is being generated as String, if the Contact list has more that one contact it will fail. eg.
it generates: user@example.comuser2@example.com ...
Causes Exception:
Error: BadRequestException(BadRequestException { message: Some("Illegal address"), meta: ErrorMetadata { code: Some("BadRequestException"), message: Some("Illegal address"), extras: Some({"aws_request_id": "da0bf20a-52b3-4acc-bb22-eec27cf68322"}) } })

cs is now a Vec and is directly assigned to dest.to_addresses

Now it sends emails to a contact list with more that one element.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@meyertst-aws meyertst-aws requested review from DavidSouther and removed request for DavidSouther August 2, 2023 11:48
@meyertst-aws meyertst-aws added the Rust This issue relates to the AWS SDK for Rust (Preview) label Aug 4, 2023
@ford-at-aws ford-at-aws added On Call Review complete On call review complete Text Review not needed This contains no text which needs review labels Aug 21, 2023
@DavidSouther DavidSouther self-requested a review September 6, 2023 18:55
@Laren-AWS
Copy link
Contributor

Laren-AWS commented Sep 6, 2023

@d-ufrik This is failing the Rust linter (named Rust/Check in the actions list). Check the logs and push an update.

d-ufrik and others added 3 commits September 13, 2023 10:40
cs is being returned without a comma. eg:
user@example.comuser2@example.com...
Causes Exception:
Error: BadRequestException(BadRequestException { message: Some("Illegal address"), meta: ErrorMetadata { code: Some("BadRequestException"), message: Some("Illegal address"), extras: Some({"aws_request_id": "da0bf20a-52b3-4acc-bb22-eec27cf68322"}) } })

If the contact list has more that one contact it will fail.
Fixed.
cs is being generated as String, if the Contact list has more that one contact it will fail. eg:
user@example.comuser2@example.com...
Causes Exception:
Error: BadRequestException(BadRequestException { message: Some("Illegal address"), meta: ErrorMetadata { code: Some("BadRequestException"), message: Some("Illegal address"), extras: Some({"aws_request_id": "da0bf20a-52b3-4acc-bb22-eec27cf68322"}) } })

cs is now a Vec<String> and is directly assigned to dest.to_addresses
@DavidSouther DavidSouther merged commit 1b9b30a into awsdocs:main Sep 13, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
On Call Review complete On call review complete Rust This issue relates to the AWS SDK for Rust (Preview) Text Review not needed This contains no text which needs review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants