I am trying to send an e-mail using one of the examples I got on this group
as follows: (both toemail and myemail are valid e-mail addreses.
'System.Web.Mai l' (requires reference to "System.Web.dll "),
''' delcare a new mail message
Dim aMailMessage As New System.Web.Mail .MailMessage
''' set the from address
aMailMessage.Fr om = myemail
''' set the to address and subject
aMailMessage.To = toemail
aMailMessage.Su bject = "Test Sending E-Mail from VB."
''' send in Text format
aMailMessage.Bo dyFormat = System.Web.Mail .MailFormat.Tex t
''' set the body text
aMailMessage.Bo dy = "This is the text of the email message from
my test Program."
''' add an attachment if you want to
'aMailMessage.A ttachments.Add( New
System.Web.Mail .MailAttachment ("C:Test.txt ",
System.Web.Mail .MailEncoding.B ase64))
''' send the email
System.Web.Mail .SmtpMail.SmtpS erver = "smtp.sbcglobal .net"
System.Web.Mail .SmtpMail.Send( aMailMessage)
I get an error message stating "Could not access CDO.Message Object. Anyone
know what I'm doing wrong, My e-mail is via RoadRunner Internet connection.
--
Dennis in Houston
as follows: (both toemail and myemail are valid e-mail addreses.
'System.Web.Mai l' (requires reference to "System.Web.dll "),
''' delcare a new mail message
Dim aMailMessage As New System.Web.Mail .MailMessage
''' set the from address
aMailMessage.Fr om = myemail
''' set the to address and subject
aMailMessage.To = toemail
aMailMessage.Su bject = "Test Sending E-Mail from VB."
''' send in Text format
aMailMessage.Bo dyFormat = System.Web.Mail .MailFormat.Tex t
''' set the body text
aMailMessage.Bo dy = "This is the text of the email message from
my test Program."
''' add an attachment if you want to
'aMailMessage.A ttachments.Add( New
System.Web.Mail .MailAttachment ("C:Test.txt ",
System.Web.Mail .MailEncoding.B ase64))
''' send the email
System.Web.Mail .SmtpMail.SmtpS erver = "smtp.sbcglobal .net"
System.Web.Mail .SmtpMail.Send( aMailMessage)
I get an error message stating "Could not access CDO.Message Object. Anyone
know what I'm doing wrong, My e-mail is via RoadRunner Internet connection.
--
Dennis in Houston
Comment