Can someone please tell me whats wrong with this code, I keep getting the error that:

Could not access 'CDO.Message' object

VB Code:
  1. Public Function SendEmail()
  2.  
  3.         Dim oEmail As New System.Web.Mail.MailMessage()
  4.         oEmail.Body = eBody
  5.         oEmail.From = "Alert Service on Devon"
  6.         oEmail.To = "[email protected]"
  7.         oEmail.Subject = eSubject
  8.  
  9.         Dim oSendEmail As Web.Mail.SmtpMail
  10.         oSendEmail.SmtpServer = "trent"
  11.         oSendEmail.Send(oEmail)
  12.     End Function

Thanks in Advance