Author: hardik_kp | Posted on: 3/1/2009 11:43:44 PM | Views : 266

Hello All

I want to know the address of the SMTP port name and SMTP server name. I have created the application of sending Email through .aspx page but the SMTP name and port are static but I want to know how to get those things using coding. I have paste my code here.
MailMessage mail = new MailMessage();
mail.To.Add(txtAddress.Text.ToString());
mail.From = new System.Net.Mail.MailAddress(txtFromAddress.Text.ToString());

Go to the complete details ...