|
-
August 22nd, 2007, 01:55 AM
#4
Re: Hyperlink in text string
 Originally Posted by Thread1
here is a sample code
Code:
Dim m As New System.Web.Mail.MailMessage
Dim sm As System.Web.Mail.SmtpMail
m.BodyFormat = Web.Mail.MailFormat.Html
m.To = "[email protected]"
m.From = "[email protected]"
m.Subject = "test"
m.Body = "<html><body>" & _
"<p />" & _
"Please click <a href=""http://domain.com/mysite"">here</a> to login." & _
"<p />" & _
"Please click <a href=""mailto:[email protected]"">here</a> to mail me." & _
"</body></html>"
sm.SmtpServer = "<your mail server here>"
sm.Send(m)
The OP is using System.Net.Mail (.Net 2.0+), not System.Web.Mail (.NET 1.x).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|