Skip to content

Added support of replyToList in the library#1

Merged
subinoy7 merged 8 commits intomainfrom
f/replyToMultiple
Sep 23, 2021
Merged

Added support of replyToList in the library#1
subinoy7 merged 8 commits intomainfrom
f/replyToMultiple

Conversation

@subinoy7
Copy link
Copy Markdown
Owner

Implementation of sendgrid#339 & sendgrid#1301
The replyToList support was added in v3 API but it wasn't supported in the library. With this changes, we can:

  • Use the replyToList header to set multiple emails in the replyTo
  • Error handling are placed if the format is not in acceptable
  • Fixed old test cases that were failing as SendGrid changed the acceptable response code to 202

Acceptable Format:
[ { "name": "Test Team", "email": "test@example.org" }, { "name": "Support Test Team", "email": "support.test@example.org" } ]

If any one of the records doesn't have email filed, then it will return an error. Also the value of replyToList should be an array.

@subinoy7 subinoy7 merged commit 75aa0f7 into main Sep 23, 2021
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.

1 participant