SendMail doesn't work with SSL and doesn't handle errors
BeniFreitag opened this issue · comments
app-mobius-forms/live/api/Parts/SendMail.cs
Lines 12 to 36 in 0520f71
SendMail.Send()
always returnstrue
and doesn't handle STMP-Errors. Instead the result should check wheterDotNetNuke.Services.Mail.Mail.SendMail()
returned an empty string (success) but otherwise returnfalse
(handle the error).- It has
smtpEnableSSL
-parameter hardcoded tofalse
(last parameter inDotNetNuke.Services.Mail.Mail.SendMail()
). Instead this should be retrieved fromDotNetNuke.Entities.Host.Host.EnableSMTPSSL
.
great input - could you contribute? 😊
I believe this is fixed as the latest ones use a 2sxc IMailService. If not, feel free to re-open.