Products

Solutions

Learn More

Partners

Community

Blog

About

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Possible to send email via SMTP implicit SSL?Possible to send email via SMTP implicit SSL?
Previous
 
Next
New Post
10/3/2018 7:00 PM
 

Hi,

I am using DNN v7.3.3 and integrating with SendGrid SMTP over port 465 for SSL connections. I had the following settings in DNN:

SMTP Server:  smtp.sendgrid.net:465
Connection Limit: 1
Max Idle Time: 0
Enable SSL: Yes
SMTP Authentication: Basic
SMTP Authentication Username / Password: (provided)

Running a test email did not go through and DNN had the following exception:

System.Net.Mail.SmtpException: The operation has timed out.
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at DotNetNuke.Services.Mail.Mail.SendMailInternal(MailMessage mailMessage, String subject, String body, MailPriority priority, MailFormat bodyFormat, Encoding bodyEncoding, IEnumerable`1 attachments, String smtpServer, String smtpAuthentication, String smtpUsername, String smtpPassword, Boolean smtpEnableSSL)

 

Is DNN using .Net library System.Net.Mail to send email. Reading from MSDN the library only supports "Explicit SSL" not "Implicit SSL". 

Is it possible to use "Implicit SSL" in DNN? 

Thanks,

Kat

 
New Post
10/9/2018 7:06 PM
 
yes, DNN is using .Net for sending emails, I don't understand what "implicit" means - DNN needs to call the server on the appropriate port.
did you try using comma instead of colon to separate mail server and port?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/12/2018 12:30 PM
 

Hi,

Thank you for the suggestions! I've tried successfully the following server and port combinations to send emails:

smtp.sendgrid.net:587
smtp.sendgrid.net:25 (or without port)

It looks like using "colon" between server and port works for me. 

However, it did not work when I point to port 465. Sorry if I didn't explain myself well about the implicit SSL. Referring to MSDN, it seems that the SmtpClient class from System.Net.Mail only supports the SMTP Service Extension for Secure SMTP over Transport Layer Security as defined in RFC 3207.

Comparatively, an alternate connection method is where an SSL session is established up front before any protocol commands are sent. This connection method is sometimes called SMTP/SSL, SMTP over SSL, or SMTPS and by default uses port 465. This alternate connection method using SSL is not currently supported. (referring this alternate connection as implicit SSL)

Here is a link I found on MSDN with more details:

https://docs.microsoft.com/en-us/dotnet/api/system.net.mail.smtpclient.enablessl?view=netframework-4.7.2

Is it possible to use the alternate connection (implicit SSL) in DNN?

Thanks,

Kat

 
New Post
10/13/2018 4:48 AM
 
If the connection needs to be established upfront, this would require a code change in DNN, AFAIK there is no connection established manually, DNN is just relying on ASP.Net sendmail.send. You may post an enhancement request in the public issue tracker at https://github.com/dnnsoftware/Dnn.Pl....

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/15/2018 4:07 PM
 
Thank you for the info! If this is something possible in DNN that'll be great! I have submitted a feature request on GitHub.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Possible to send email via SMTP implicit SSL?Possible to send email via SMTP implicit SSL?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  

What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out