By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,536 Members | 1,504 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,536 IT Pros & Developers. It's quick & easy.

smtpclass error

P: n/a
I get this error message while trying to send mail using the system.web.mail.smtpmail class
"cannot access the CDO.message object". Can someone help me out
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
This seems to be a pretty common problem when using System.Web.Mail. As I recall, when I had this problem, the solution was to change the properties on my SMTP server to allow relay access to anyone. This works out OK if you're doing some testing on a development machine, something not directly connected to the Internet and for crap sake NOT using your production SMTP server (unless you really do want people to relay spam through your site). Apparently from what I've seen, there is no way around this, so I'm currently checking out some other SMTP mail solutions to replace System.Web.Mail. I downloaded on this morning, OpenSMTP.Net, which is open source and can be downloaded at http://sourceforge.net/projects/opensmtp-net/. Haven't tried it out yet though, so I can't say how/if it works better than System.Web.Mail

Good luck

Chri

----- Tayo wrote: ----

I get this error message while trying to send mail using the system.web.mail.smtpmail class
"cannot access the CDO.message object". Can someone help me out
Nov 18 '05 #2

P: n/a
Hi,

I also had this problem.
The .NET SMTP does not send mail like ASP, but accesses the SMTP server on
its own machine. Therefore the SMTP server needs to allow mail relay by
itself. So give access to 127.0.0.1 to relay and it should work.

Leo
--

-----------------------------------------------
Leo Muller ליאו מילר
Webmaster Keshet Interactive
Le********@Keshet-TV.com
03 - 7676383 / 067 - 972985
--------------------------------------
http://www.keshet-i.com
http://www.mooma.com
http://www.hakasefet.co.il
http://www.bip.co.il
http://www.keshet-tv.com


"Tayo" <an*******@discussions.microsoft.com> wrote in message
news:E7**********************************@microsof t.com...
I get this error message while trying to send mail using the system.web.mail.smtpmail class; "cannot access the CDO.message object". Can someone help me out

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.