471,338 Members | 1,489 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Using System.Web to Mail messaging in VB.NET/C#.Net

Using the objects in System.Web, I am able to send email to internal email
address using VB or C#.net.

But,if I try to send an email to an external email address, I receive this
message:

An unhandled exception of type 'System.Web.HttpException' occurred in
system.web.dll

Additional information: Could not access 'CDO.Message' object.

Jul 21 '05 #1
3 2046
Hi, hope this helps: http://www.systemwebmail.com/faq/4.2.3.aspx

Bests -- Arun
ak*************@yahoo.de
< For your next question, try google.com :-) >
"Roger" wrote:
Using the objects in System.Web, I am able to send email to internal email
address using VB or C#.net.

But,if I try to send an email to an external email address, I receive this
message:

An unhandled exception of type 'System.Web.HttpException' occurred in
system.web.dll

Additional information: Could not access 'CDO.Message' object.

Jul 21 '05 #2
Hi Roger,

This error message is somewhat misleading. While there is a very small
chance that the ASPNET user cannot access the DLL, the more likely scenario
is related to the actual connect to the SMTP server specified in the
application settings.

To remedy the situation, follow these steps to open your SMTP server for
relaying.

If using Microsoft's SMTP Server, open the properties on your SMTP Server
and go the the "Access" tab. Press the "Relay" button, change the option to
"All except the list below" and clear any options in the list. Then press OK.
If this remedies the problem, this means that your normal settings do not
allow the "From Address" that was specified to send emails through the
server.

While you do not want to leave your server completely open for SMTP relay,
you can safely add the IP address of your web server and set it to use the
"Only the list below" option.

If this does not remedy the problem, we recommend that you confirm the
following:
- That you are using a valid email address for the from and the to addresses.
- Confirm that you are able to connect to the SMTP server. Use a telnet
client and connect to port 25 to test.
regards,
Bhavesh Patel

"Roger" wrote:
Using the objects in System.Web, I am able to send email to internal email
address using VB or C#.net.

But,if I try to send an email to an external email address, I receive this
message:

An unhandled exception of type 'System.Web.HttpException' occurred in
system.web.dll

Additional information: Could not access 'CDO.Message' object.

Jul 21 '05 #3
I think my problem closely resembles Suggestion 4. Cause I know I can send
internally, but externally I can't. Now, how do I configure exchange server
to allow me to relay messages.

"ak*************@yahoo.de" wrote:
Hi, hope this helps: http://www.systemwebmail.com/faq/4.2.3.aspx

Bests -- Arun
ak*************@yahoo.de
< For your next question, try google.com :-) >
"Roger" wrote:
Using the objects in System.Web, I am able to send email to internal email
address using VB or C#.net.

But,if I try to send an email to an external email address, I receive this
message:

An unhandled exception of type 'System.Web.HttpException' occurred in
system.web.dll

Additional information: Could not access 'CDO.Message' object.

Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by John A Grandy | last post: by
reply views Thread by Kevin Quigley | last post: by
4 posts views Thread by RedMoosh | last post: by
1 post views Thread by kadykedar | last post: by
reply views Thread by rosydwin | last post: by

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.