crossvertise / ActionMailerNext

Fork of ActionMailer.Net, A easy to use library to generate emails with razor views
MIT License
42 stars 24 forks source link

System.Net.Mail.SmtpException with removal of SSLv3 & TLSv1.0 #35

Open Eclipse-Computing opened 7 years ago

Eclipse-Computing commented 7 years ago

In an attempt to tighten up our server, we disabled SSLv3 and TLSv1.0. In response, this plugin decided to barf up its breakfast with the following error:

The client and server cannot communicate, because they do not possess a common algorithm Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ComponentModel.Win32Exception: The client and server cannot communicate, because they do not possess a common algorithm

There is a solution if a mailer is being hand-coded:

 ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls;

But under ActionMailerNext I don’t know where to implement this.

All Web.Config settings have been triple-checked. I have used all permutations of ports and protocols, included unencrypted port 25.

If we re-enable SSLv3 and TLSv1.0, it starts working again. If we turn them off, it stops working. We need SSLv3 and TLSv1.0 off in order to meet compliance issues, please help!