Quote 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).