Could not access 'CDO.Message' object.

  • Thread starter Thread starter Dean
  • Start date Start date
D

Dean

Trying to send an email and I get the following message,
see code snippet below. The SMTP server is running and
works as when I add a message to the pickup directory it
gets sent. Any suggestions as to what to look for fould
be appreciated.

lblError.Text = "Mail sent successfully!"
lblError.Visible = True
Try
System.Web.Mail.SmtpMail.Send( _
"(e-mail address removed)", _
"(e-mail address removed)", _
"testing asp email", _
"here is the asp test body")
Catch ex As Exception
lblError.Text = "There was problem sending the
email;<br />" & _
ex.Message
End Try
 
Back
Top