Step1 : Add a reference to System.Web.Mail
Step2 : Add the Imports System.Web.Mail Statements
Step 3: Use something like my code here, DONT FORGET TO CHANGE THE -
SMTPMAILSERVER Name, see below
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
Dim mm As New MailMessage
Dim body As New TextBox
body.Multiline = True
body.AppendText ("============= =============== =<BR>")
body.AppendText ("<a href=http://TrainingOn.net> TrainingOn.net For all your
Developer Training</a><BR>")
body.AppendText ("============= =============== =<BR>")
mm.To =
Yo*******@Where YouWantItToGo.C om
mm.From = "Me@here.co m"
mm.Subject = "Test Message"
mm.BodyFormat = MailFormat.Html
mm.Body = body.Text
SmtpMail.SmtpSe rver = "YOURSMTPMAILSE RVERNAME"
Try
SmtpMail.Send(m m)
Catch ex As System.Web.Http Exception
MsgBox(ex.Inner Exception.ToStr ing)
End Try
End Sub
"Wayne Wengert" <wa***********@ wengert.org> wrote in message
news:O3******** ******@TK2MSFTN GP10.phx.gbl...
I found information on the URI object and tried that but the URL in the
resulting email is not showing up as a link? I see the correct URL but it
is not "clickable" ?
Wayne
"Wayne Wengert" <wa***********@ wengert.org> wrote in message
news:uu******** ******@TK2MSFTN GP14.phx.gbl...I am trying to build an aspx page that will send customized emails to a
list of email addresses (in a SQL Server table) where each email has a
customized hyperlink. As part of the body of the outgoing message I want a
section that is something like:
=============== =============== ===========
Click on the following link to verify your email address:
http://mysite.com/mypage.aspx?i=nnn
=============== =============== ===========
where "nnn" is an integer pulled from the database for that row.
How can I accomplish this?
Wayne