in my system i should send notification mail after reviewing a list
i am using DNN
there is the Code i use
private void SendEmailNotification()
{
DotNetNuke.Services.Mail.Mail.SendMail("mail@gmail.com", "mail@ymail.com", String.Empty, "URL Test", "this is a test of dnnmail: <a href='http://www.dotnetnuke.com'>DotNetNuke</a>", String.Empty, "html", String.Empty, String.Empty, String.Empty, String.Empty);
}
and the function calling is
SendEmailNotification();
but i dont get any mails ,,, what am i doing wrong
When calling SendMail you are using the settings from the Host Settings section of the site. If the information is incorrect, you should get an exception out of this call.
Therefore, you might want to check to see if there is anything in Event Viewer indicating an error.
Additionally, depending on the from/to addresses that you are using, be sure to check the spam folder.