473,395 Members | 1,437 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Problem using System.Web.Mail

I'm trying to send an email message using System.Web.Mail.
Each time I try, I get the error message:
Could not access 'CDO.Message' object.
This looks to me like a configuration error of some sort. Any suggestions
about how to solve it?

Thanks,
Hardin Brothers
Jul 21 '05 #1
4 1169
HBrothers <pl****@dont.send.email> wrote:
I'm trying to send an email message using System.Web.Mail.
Each time I try, I get the error message:
Could not access 'CDO.Message' object.
This looks to me like a configuration error of some sort. Any suggestions
about how to solve it?


Do you have CDO installed? If not, I believe that's likely to be the
problem.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #2

"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...
HBrothers <pl****@dont.send.email> wrote:
I'm trying to send an email message using System.Web.Mail.
Each time I try, I get the error message:
Could not access 'CDO.Message' object.
This looks to me like a configuration error of some sort. Any suggestions about how to solve it?


Do you have CDO installed? If not, I believe that's likely to be the
problem.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too


Yes, CDO is installed. I did check that. Both CDO.Message and
CDO.Message.1 appear to be properly installed in the registry (this is a
WinXP Pro machine on an office network with an Exchange server, if that
makes a difference).
Jul 21 '05 #3
Did you check the InnerException message?

"HBrothers" <pl****@dont.send.email> wrote in message
news:ea**************@TK2MSFTNGP11.phx.gbl...

"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...
HBrothers <pl****@dont.send.email> wrote:
I'm trying to send an email message using System.Web.Mail.
Each time I try, I get the error message:
Could not access 'CDO.Message' object.
This looks to me like a configuration error of some sort. Any suggestions about how to solve it?


Do you have CDO installed? If not, I believe that's likely to be the
problem.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too


Yes, CDO is installed. I did check that. Both CDO.Message and
CDO.Message.1 appear to be properly installed in the registry (this is a
WinXP Pro machine on an office network with an Exchange server, if that
makes a difference).

Jul 21 '05 #4
Seems like you do not have permissions to send emails to people outside of your exchange server.

Your exchnage server is configured such that emails can be sent only to people within the same server, you will need permissions to access outside email addresses.

************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Trond A. S. Andersen | last post by:
Hi, all! I'm trying to use the System.Web.Mail. "package" combinded with System.Web.Mail.SmtpMail in order to send MS Excel spreadsheets attached to mail messages. However, sending one single...
3
by: Bart Stes | last post by:
Hey guys, I'm try to write a very simple winform app that allows the users to send an email. I use the System.Web.Mail MailMessage class for this. But when it comes to adding an attachment,...
3
by: Phil Mc | last post by:
Hi has anyone come accross the problem.... with referance to System.Web.Mail.MailMessage and System.Web.Mail.SmtpMail THIS WORKS FINE mail=new MailMessage(); mail.From =...
3
by: huan | last post by:
Hi, I am creating a function using C# to send emails with attachment file. And I am using File Field control to get file for attachment. Sending email works fine on development machine, however...
5
by: ElanKathir | last post by:
Hi ! I wrote one code for Send the E-mail, But that code have some problem , So please help me Here i paste my code and Error: Error: Server Error in '/Elan_Sample' Application. ...
2
by: hb | last post by:
Hi, Yesterday I applied an automatic Windows security update from Microsoft. Then, none of my web application can send out email using System.Web.Mail.SmtpMail.Send(); I don't see any errors....
2
by: Brad | last post by:
I have a web .Net app which sends emails with attachments. After the email is sent I clean up aftermyself and delete the attachments from disk. In upgrading to .Net 2 I changed the email logic...
2
by: shapper | last post by:
Hello, I have a contact form in my web site which is working just fine on my computer! When I uploaded my web site to my hosting server I get an error when I SUBMIT my form, i.e., when I...
1
by: erPanita | last post by:
Hello.. I'm using the C# class System.Net.Mail.MailMessagein order to send Emails in HTML Format. The HTML body comes from a Crystal Report converted to HTML Format 40 through the Crystal Class from...
2
by: joseph2000 | last post by:
Hi, I have problem with e-mails which are being send via System.Web.Mail.SmtpMail class but before describing the problem itself first I'd like to show shortly what I'm doing on the server. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.