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

Add ISmtpService extension methods #14772

Merged
merged 15 commits into from
May 18, 2024
Merged

Add ISmtpService extension methods #14772

merged 15 commits into from
May 18, 2024

Conversation

hishamco
Copy link
Member

No description provided.

@hishamco
Copy link
Member Author

@MikeAlhayek please review if you have time, just simple extension methods to simplify sending the emails

@MikeAlhayek
Copy link
Member

@hishamco
Can we please finish the other Email PR first and revisit this after?

@hishamco
Copy link
Member Author

Seems the Azure Email will takes so long after the tons of feedback :)

Copy link
Contributor

This pull request has merge conflicts. Please resolve those before requesting a review.

@hishamco hishamco requested a review from MikeAlhayek February 27, 2024 23:46
Copy link
Member

@Piedone Piedone left a comment

Choose a reason for hiding this comment

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

This will need to wait for #14715.

Copy link
Contributor

github-actions bot commented Apr 1, 2024

This pull request has merge conflicts. Please resolve those before requesting a review.

@hishamco hishamco requested a review from Piedone May 18, 2024 02:13
@hishamco
Copy link
Member Author

I need to merge this if no one has any comment because I need to continue on PR #14715

Copy link
Member

@Piedone Piedone left a comment

Choose a reason for hiding this comment

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

I'm otherwise OK with this, @MikeAlhayek?

If we'll also merge #14715 then this extension's signature will need to be changed too, but OK.

MikeAlhayek and others added 4 commits May 18, 2024 11:27
Co-authored-by: Zoltán Lehóczky <[email protected]>
Co-authored-by: Zoltán Lehóczky <[email protected]>
Co-authored-by: Zoltán Lehóczky <[email protected]>
Co-authored-by: Zoltán Lehóczky <[email protected]>
@MikeAlhayek
Copy link
Member

I am good with that one extension.

@hishamco
Copy link
Member Author

@MikeAlhayek the last refactoring looks much better

@hishamco hishamco requested a review from Piedone May 18, 2024 18:42
Copy link
Member

@Piedone Piedone left a comment

Choose a reason for hiding this comment

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

I don't think the last commit brings any value but makes the code more complex. I'm OK with the code before that.

@hishamco
Copy link
Member Author

I don't think the last commit brings any value but makes the code more complex. I'm OK with the code before that.

I don't think so :) I'm not sure why we need two methods that do the exact thing except one for the subject and the other for the body

@Piedone
Copy link
Member

Piedone commented May 18, 2024

The difference boils down to the fact that instead of having a GetSubjectAsync and GetBodyAsync separately, there's a tuple-returning GetSubjectAndBodyAsync that does it for both. This isn't better: The code does the same operations as before (i.e. no reduction) but instead of having a structured approeach of three specific methods, does all in one mixed together. The tuple is a code smell of this too.

@hishamco
Copy link
Member Author

I will revert back to the last commit and then merge

This reverts commit 903a901.
@hishamco hishamco requested a review from Piedone May 18, 2024 20:55
@Piedone Piedone merged commit c5acb34 into main May 18, 2024
11 checks passed
@Piedone Piedone deleted the hishamco/email-extensions branch May 18, 2024 21:16
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