Posts

Showing posts from November 20, 2013

Send Email Through GoDaddy Server to other Email Account in Asp.net

Image
Suppose in your website you have a contact us or career page in which user may send his data or can contact you and you want that data on y our Gmail, Outlook, Hotmail or other email account. First of all look at the form In the above form if you want to receive user data on you different email accounts then one thing you should consider in your mind.  Web browser is not going to directly send data in your email account (email will be send through other email account) , So you will have to give an interface through which your server can send data from client side. So how you will do it in Asp.net ? for this you will have to go through following steps. 1. add name space                          using System.Net;                          using System.Net.Mail; 2. On click event of submit button write following code.  1. Create an object of MailMessage class like this          MailMessage msg = new MailMessage ();  in this object you will get many properties and method