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

fix: Sequential mail sending aborts after one mail is rejected #5179

Merged
merged 6 commits into from
Nov 14, 2024

Conversation

deekshas8
Copy link
Contributor

Added error handling so other mails should be sent, even if one of them fails

'@sap-cloud-sdk/mail-client': patch
---

[Fixed Issue] Fix email sending functionality to ensure that emails are sent to all valid addresses. Previously, if an email failed, all subsequent emails were not sent.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is indeed a fix instead of a breaking change.

Copy link
Member

@tomfrenken tomfrenken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All in all LGTM, please add a test though, to cover the case where one of the mails fails and the others still are being send.

Copy link
Contributor

@ZhongpinWang ZhongpinWang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left two comments, but overall LGTM

packages/mail-client/src/mail-client.ts Show resolved Hide resolved
packages/mail-client/src/mail-client.ts Show resolved Hide resolved
@deekshas8 deekshas8 merged commit 62eaed5 into main Nov 14, 2024
16 checks passed
@deekshas8 deekshas8 deleted the mail-error-handling branch November 14, 2024 13:32
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.

5 participants