Hello,
I am writing the code for contactus module for DNN. But i ma unable to recived the mai. what i m missing in the code. thanks in advance.
SmtpClient smtpClient = new SmtpClient();
MailMessage mailMsg = new MailMessage();
MailAddress fromAddress = new MailAddress("friendemail@mail.com", "friend");
smtpClient.Host = "abc.mail.com";
//smtpClient.Port = 587;
smtpClient.Port = 25;
mailMsg.From = fromAddress;
& ...
Go to the complete details ...