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(ByVal sender As System.Object, ByVal e As
System.EventArgs) 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*******@WhereYouWantItToGo.Com
mm.From = "Me@here.com"
mm.Subject = "Test Message"
mm.BodyFormat = MailFormat.Html
mm.Body = body.Text
SmtpMail.SmtpServer = "YOURSMTPMAILSERVERNAME"
Try
SmtpMail.Send(mm)
Catch ex As System.Web.HttpException
MsgBox(ex.InnerException.ToString)
End Try
End Sub
"Wayne Wengert" <wa***********@wengert.org> wrote in message
news:O3**************@TK2MSFTNGP10.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**************@TK2MSFTNGP14.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