1. Get SMTP details of DotNetNuke
public string SmtpDetail()
{
string userName = DotNetNuke.Entities.Host.Host.SMTPUsername + “#” +
DotNetNuke.Entities.Host.Host.SMTPPassword + “#” +
DotNetNuke.Entities.Host.Host.SMTPServer + “#” +
DotNetNuke.Entities.Host.Host.EnableSMTPSSL;
return userName;
}
2. Call this function and get the result