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 = "";
     String naar = "";
     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.

Kunnen we je nog ergens anders mee helpen?

Bel of mail ons. We helpen je snel met een antwoord.

Contacteer ons