473,395 Members | 1,846 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.

Email Tool...having problems..Please help..

Hi People,

I am tryint to use the facilities of System.Web.Mail in order to implement
an email sending facility in my web-based application.

I get this error.

An error occurred: System.Web.HttpException: Could not access 'CDO.Message'
object. ---> System.Reflection.TargetInvocationException: Exception has been
thrown by the target of an invocation. ---

Do I need to have a smtp server running on my pc before I can implement the
email facility ?

Please Help,

Thanks,

I..A
Nov 19 '05 #1
5 1414
Irfan,

Have a look at this, http://www.systemwebmail.com/faq/4.2.2.aspx

I also ran into this error. The problem lies in the smtp server name you are
using. Are you using localhost as the smtp server name?

Andy

"Irfan Akram" <Ir********@discussions.microsoft.com> wrote in message
news:79**********************************@microsof t.com...
Hi People,

I am tryint to use the facilities of System.Web.Mail in order to implement
an email sending facility in my web-based application.

I get this error.

An error occurred: System.Web.HttpException: Could not access 'CDO.Message' object. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---

Do I need to have a smtp server running on my pc before I can implement the email facility ?

Please Help,

Thanks,

I..A

Nov 19 '05 #2
Hi Irfan,

Is there a file on your system called Cdosys.dll? That's a COM control that
Web.Mail uses.

Ken

"Irfan Akram" <Ir********@discussions.microsoft.com> wrote in message
news:79**********************************@microsof t.com...
Hi People,

I am tryint to use the facilities of System.Web.Mail in order to implement
an email sending facility in my web-based application.

I get this error.

An error occurred: System.Web.HttpException: Could not access
'CDO.Message'
object. ---> System.Reflection.TargetInvocationException: Exception has
been
thrown by the target of an invocation. ---

Do I need to have a smtp server running on my pc before I can implement
the
email facility ?

Please Help,

Thanks,

I..A


Nov 19 '05 #3
Hi Andy,

I'm kinda new at this. Do we already need an smtp server running on the
machine in order to send & receive emails.

thanks for your help,

I..A
Nov 19 '05 #4
Yes there is. It is in my c:/windows/system32 folder, bu I have not got any
smtp server on my machine.

"Ken Cox [Microsoft MVP]" wrote:
Hi Irfan,

Is there a file on your system called Cdosys.dll? That's a COM control that
Web.Mail uses.

Ken

"Irfan Akram" <Ir********@discussions.microsoft.com> wrote in message
news:79**********************************@microsof t.com...
Hi People,

I am tryint to use the facilities of System.Web.Mail in order to implement
an email sending facility in my web-based application.

I get this error.

An error occurred: System.Web.HttpException: Could not access
'CDO.Message'
object. ---> System.Reflection.TargetInvocationException: Exception has
been
thrown by the target of an invocation. ---

Do I need to have a smtp server running on my pc before I can implement
the
email facility ?

Please Help,

Thanks,

I..A


Nov 19 '05 #5
What address string are you using for

SmtpMail.SmtpServer

It should be a working mail server that accepts external mail. Doesn't have
to be on your workstation.

Ken

"Irfan Akram" <Ir********@discussions.microsoft.com> wrote in message
news:3D**********************************@microsof t.com...
Yes there is. It is in my c:/windows/system32 folder, bu I have not got
any
smtp server on my machine.

"Ken Cox [Microsoft MVP]" wrote:
Hi Irfan,

Is there a file on your system called Cdosys.dll? That's a COM control
that
Web.Mail uses.

Ken

"Irfan Akram" <Ir********@discussions.microsoft.com> wrote in message
news:79**********************************@microsof t.com...
> Hi People,
>
> I am tryint to use the facilities of System.Web.Mail in order to
> implement
> an email sending facility in my web-based application.
>
> I get this error.
>
> An error occurred: System.Web.HttpException: Could not access
> 'CDO.Message'
> object. ---> System.Reflection.TargetInvocationException: Exception has
> been
> thrown by the target of an invocation. ---
>
> Do I need to have a smtp server running on my pc before I can implement
> the
> email facility ?
>
> Please Help,
>
> Thanks,
>
> I..A



Nov 19 '05 #6

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

Similar topics

7
by: tyler_durden | last post by:
thanks a lot for all your help..I'm really appreciated... with all the help I've been getting in forums I've been able to continue my program and it's almost done, but I'm having a big problem that...
7
by: Randel Bjorkquist | last post by:
First, I'm extremely new to C# and the Microsoft Visual Studio IDE. I am in the middle of writing a small web application that communicates to a database server and sends out email confirmations. ...
5
by: Chris H | last post by:
Hello All, Hope all is having a cool holiday season... I am looking for a code validation tool for VB.NET. It should be able to point out variables that are not in use as well as ways to make...
4
by: Steven Ramacher | last post by:
I am having a little issue with VS 2005. I am trying to use the ASP.NET configuration manager and have not had any success launching the application. No matter what I do I get an error message that...
25
by: virg | last post by:
Hi, i have client-server application which is written in python using XMLRPC protocol. The existing client is a command line. Now client application we are converting it as Web UI using java. I...
0
by: CharlesA | last post by:
sorry I had to clarify my previous post as I wasn't able to get specific answers so I'm made this very targetted to what I actually pretty desperate to fix. my Setup: I've got XP pro, IIS 5 ,...
4
by: lucavilla | last post by:
If you go to http://europe.nokia.com/A4305060, fill the "Enter your product code:" field with the value "0523183" and press "Go" (the ending page URL varies because there's a variable session-ID in...
4
n8kindt
by: n8kindt | last post by:
ok, i've done quite a bit of research on my problem here. random "! " will appear in my email that i'm sending thru cdo. i've learned that this problem occurs when there are long lines of html (or...
14
by: Warren Tang | last post by:
Hi I am using the mail function to send a mail like this: $b = mail("my_real_email_address@gmail.com", "Hello from PHP", "Hi, finally sent an email successfully"); But it failed. Could you...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.