This article features how to send email from an ASP+ page. Using email from an ASP+ page has many uses
(Notify of errors, inform people about a a subject. etc..). This code sample sends a formatted HTML
message to the email address entered. Enjoy this free code!
Here is the code
Page 1. The input form
Page 2. Sends the email code
<%@ Import Namespace="System.Web.Util" %>
Sub Page_load(Sender as Object, E as EventArgs)
Dim MyMessage as New MailMessage
MyMessage.To = request.form("EmailAddress")
MyMessage.From = "webmaster"
MyMessage.Subject = "This is message is from ASPFree using ASP+"
Note:We added the BodyFormat to show how to send
formatted HTML remove this line and all the HTML code in
message. The email will send as regular text
MyMessage.BodyFormat = MailFormat.Html
MyMessage.Body = "
You received this email from
href='http://aspfree.com'>ASPFree.com
using ASP+!
"
SmtpMail.Send(MyMessage)
End Sub
You just sent an email message formatted in HTML to:

