-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
New pr to update MailKit, ideally replacing #8746 #8768
base: 1.10.x
Are you sure you want to change the base?
Conversation
@@ -116,7 +106,11 @@ public class SmtpMessageChannel : Component, ISmtpChannel, IDisposable { | |||
mailMessage.ReplyTo.AddRange(ParseRecipients(emailMessage.ReplyTo)); | |||
} | |||
|
|||
_smtpClientField.Value.Send(mailMessage); | |||
using (var smtpClient = CreateSmtpClient()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be worth having an overload which takes multiple emails to reuse the client, otherwise bulk-sending them will create as many connections.
Please merge the latest 1.10.x to fix the build error. |
@AndreaPiovanelli @MatteoPiovanelli-Laser would you like to continue working on this or #8746? |
# Conflicts: # src/Orchard.Web/Modules/Orchard.Email/packages.config
07c0e64
to
1f92bd0
Compare
I've rebased this one as well. At this point I'm just hoping either of the PRs passes github's checks |
This should replace #8746 starting from the up-to-date 1.10.x branch.