You can send e-mails in ASP.NET thanks to the SmtpMail.Send() function.
This function has the following parameters:
from (the address of the sender)
to (the address of the receiver)
subject (the subject of the e-mail)
message (your e-mail message)
You can send a simple e-mail using the following code:
String van = "firstname.lastname@example.org"; String naar = "email@example.com"; String onderwerp = "My message"; String bericht = "Dear receiver," + Environment.NewLine + "Tihs is a simple message!" + Environment.NewLine + "regards"; System.Web.Mail.SmtpMail.Send(van, naar, onderwerp, bericht);
Environment.NewLine matches a new line.