Guys,

I am using this to send mail via my app. I am seeing this error when trying to run the code below ?

Could not access 'CDO.message' object

Could anybody help with this ?

Bob

Code:
  Public Sub sendintemail()
        Dim email As New System.Web.Mail.MailMessage
        email.To = "[email protected]"
        email.From = "Static Bob"
        email.Body = "MessageText"
        email.Subject = CurrentContract.ContractName
        email.BodyFormat = Web.Mail.MailFormat.Text
        System.Web.Mail.SmtpMail.SmtpServer = "10.25.2.24"
        System.Web.Mail.SmtpMail.Send(email)
    End Sub