| re: MailMessage problem - Could not access 'CDO.Message' object.
Thanks for the responses, but sorry to report that it still does not work.
I get the same error message. The error message has to be a generic message
since I was able to successfully send mail using the
CreateObject("CDO.Message") method from VB 6.0, and the error I get is,
"Could not access 'CDO.Message' object." when trying it from VB.Net.
Thanks again,
Anthony
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:brs314$6tr41$2@ID-208219.news.uni-berlin.de...[color=blue]
> * "Anthony Fine" <anthony@sfa2000.com> scripsit:[color=green]
> > I have a VB.Net app that needs to send mail. I have created a class for
> > building my e-mail, but keep getting the error (Could not access
> > 'CDO.Message' object.) when trying to send it. I can successfully send[/color][/color]
an[color=blue][color=green]
> > e-mail when I use the CreateObject("CDO.Message") method, but it fails[/color][/color]
when[color=blue][color=green]
> > trying to send using VB.Net. My code is below, I have included three
> > different ways that I have tried it, and both VB.Net options fail, any[/color][/color]
help[color=blue][color=green]
> > will be greatly appreciated.[/color]
>
> Does this sample work for you (notice that I forgot to specify the SMTP
> server):
>
> <http://www.mvps.org/dotnet/dotnet/samples/net/downloads/SendMail.zip>
>
> --
> Herfried K. Wagner [MVP]
> <http://www.mvps.org/dotnet>[/color] |