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: add reply to support for aws ses provider #3131

Merged
merged 5 commits into from
Apr 12, 2023

Conversation

deep-bhatt-pmc
Copy link
Contributor

What change does this PR introduce?

  • This PR sets the replyTo parameter in nodemailer SES transport.

Why was this change needed?

  • replyTo wasn't working for AWS SES provider. This PR fixes that bug.

Closes #3122

Copy link
Contributor

@p-fernandez p-fernandez left a comment

Choose a reason for hiding this comment

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

I would suggest to add test for this addition for confidence.

@@ -12,6 +12,7 @@ const mockConfig = {

const mockNovuMessage = {
to: ['test@test2.com'],
replyTo: 'test@test1.com',
Copy link
Contributor

Choose a reason for hiding this comment

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

I think that this is not enough to test if replyTo is being configured in SES.
In line 96 we should modify the spy to check that the proper params and values are passed by checking with the method toHaveBeenCalledWith and the values passed in the mockNovuMessage.
Unfortunately it wasn't done properly before but if not doing it we can't validate this change. 🙁

@deep-bhatt-pmc
Copy link
Contributor Author

I would suggest to add test for this addition for confidence.

btw. @p-fernandez Not sure if you have been notified, but I have updated the PR, can you please check?

@scopsy
Copy link
Contributor

scopsy commented Apr 10, 2023

Looks great!

@scopsy scopsy enabled auto-merge April 10, 2023 07:15
@scopsy scopsy disabled auto-merge April 12, 2023 09:34
@scopsy scopsy merged commit 54dfd83 into novuhq:next Apr 12, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[NV-1955] 🐛 Bug Report: replyTo email override isn't working for AWS SES
3 participants