Alright, I've come up with something myself (alright, the microsoft MSDN library..):
'Note: This is a code behind file using Visual Basic.NET, so be carefull with copying
Imports System.Web
Imports System.Web.Mail
'I left the other stuff that belong here out
Private Sub SendMail()
Dim mMessage As MailMessage
SmtpMail.SmtpServer = "" 'Add the outgoing (smtp) mail server here
mMessage = New MailMessage
mMessage.Bodyformat = Mailformat.Text
mMessage.To = "website@somewhere.com"
mMessage.From = "websote@somewhereelse.com"
mMessage.Body = "This is a test e-mail"
mMessage.Subject = "Website email"
SmtpMail.Send(mMessage)
End Sub
Excuse me 4 being so (...)
,
Floris [ Diep-Vriezer ]
Edited by Diep-Vriezer