Ok, here's a followup. I didn't realize that when you use the SendMail() method (instead of the older SendNotification() method) you must specify the SMTP server, username & password, from HostSettings. The older SendNotification() did this for you. This will be fixed in the next release.
Around line 580 in /Providers/LoggingProviders/XMLLoggingProvider.vb,
-----------------------------------
replace this:
-----------------------------------
errSendNotif = SendMail(objLogTypeInfo.MailFromAddress, objLogTypeInfo.MailToAddress, "", "", Mail.MailPriority.High, "Log Notification", Mail.MailFormat.Text, Text.Encoding.Default, xmlOut.OuterXml, "", "", "", "")
-----------------------------------
with this:
-----------------------------------
Dim strSMTPServer As String
' SMTP server
If Global.HostSettings("SMTPServer").ToString <> "" Then
strSMTPServer = Global.HostSettings("SMTPServer").ToString
End If
Dim strSMTPUsername As String = ""
If Convert.ToString(Global.HostSettings("SMTPUsername")) <> "" Then
strSMTPUsername = Convert.ToString(Global.HostSettings("SMTPUsername"))
End If
Dim strSMTPPassword As String = ""
If Convert.ToString(Global.HostSettings("SMTPPassword")) <> "" Then
strSMTPPassword = Convert.ToString(Global.HostSettings("SMTPPassword"))
End If
errSendNotif = SendMail(objLogTypeInfo.MailFromAddress, objLogTypeInfo.MailToAddress, "", "", Mail.MailPriority.High, "Log Notification", Mail.MailFormat.Text, Text.Encoding.Default, xmlOut.OuterXml, "", strSMTPServer, strSMTPUsername, strSMTPPassword)
---------------------------
Let me know if this doesn't solve your problem.
Dan
DotNetNuke Core Architect
