0

hi all,
i create an application to sending email's. this is the code i used.

Dim mailmsg As MailMessage

SmtpMail.SmtpServer = "127.0.0.1"
mailmsg = New MailMessage
mailmsg.To = txtFrom.Text
mailmsg.From = txtTo.Text
mailmsg.Subject = "demo"
mailmsg.Body = "Its a simple test"
mailmsg.BodyFormat = MailFormat.Text
SmtpMail.Send(mailmsg)

But i got an error 'Could not access CDO.Message object'

Please help me.

Thanks

Thomas

2
Contributors
2
Replies
3
Views
11 Years
Discussion Span
Last Post by Embeza
0

hi all,
i create an application to sending email's. this is the code i used.

Dim mailmsg As MailMessage

SmtpMail.SmtpServer = "127.0.0.1"
mailmsg = New MailMessage
mailmsg.To = txtFrom.Text
mailmsg.From = txtTo.Text
mailmsg.Subject = "demo"
mailmsg.Body = "Its a simple test"
mailmsg.BodyFormat = MailFormat.Text
SmtpMail.Send(mailmsg)

But i got an error 'Could not access CDO.Message object'

Please help me.

Thanks

Thomas

I am Embeza,
Hi my friend.
To solve your problem please go to your favorite search
engine and try paulSadowski.com
thanks
with love

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.