How did I send email from ASP.net ?
You have to use System.Web.Mail namespace
Below is the code snippets :
MailMessage myemail = new MailMessage();
myemail.From = "email@example.com"
myemail.To = firstname.lastname@example.org;
myemail.Fields["http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"] = 1;
myemail.Fields["http://schemas.microsoft.com/cdo/configuration/sendusername"] = "myusername";
myemail.Fields["http://schemas.microsoft.com/cdo/configuration/sendpassword"] = "mypass";
Replace yourdomain.com with your domain name.
Replace user name with your mail username (full address)
Replace password with your email password.
Remember, you have to authenticate yourself before you can send email from our server or else the mail will not be delivered.
Was this answer helpful?
For Internet Explorer Web Controls to work properly you need to have the required HTML...
This error is caused by a newly introduced feature of .NET Framework 1.1, called "Request...
This error may occur if the application is being run out of a subfolder and the subfolder is not...
In general, 2 different methods can be used to connect an ASP.net application to MySQL database....