473,386 Members | 1,786 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,386 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 2133
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ptdaw | last post by:
After spending a little time reading the documentation, I attempted to add some messaging code to my VB.Net project, only to discover that I couldn't get past my Imports System.Messaging ...
1
by: John A Grandy | last post by:
in .NET 2.0 where is the type Message located ? in .NET 1.1 it was System.Messaging.Message
0
by: Kevin Quigley | last post by:
Hi, I have a web page that will send emails to various addresses, I've tried using the SmtpMail class but no matter what I try it will not work. I have an asp page that does actually work...
0
by: Itai | last post by:
I require implementing an internal messaging sub-system in asp.net website where users send messages to each other using their userid for the address. No SMTP / POP3 functionality required except...
3
by: Roger | last post by:
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...
0
by: Saurabh | last post by:
I am doing Hands on Lab 33(WSE 2 chat program, last exercise) . When I run the 2 .exe's on same machine, the chat program works fine. But when I run the same exe on 2 different machines(within...
2
by: Kups | last post by:
Hi! I have a service and client that use WSE 2.0 and soap.tcp. Both are behind firewalls. Client connects to a public machine's tcp port which is redirected to service. If I send a request ...
4
by: RedMoosh | last post by:
we have to mass email around 3000 to 10000 emails to clients with attachments. can i use system.net.mail to accomplish this task from the server? all my info is in a csv format along with paths...
1
by: kadykedar | last post by:
I have following XML now i want to search XML using XSLT for Solution word which is in Title element. I want to use same functionality which is provided by Like % operator in SQL queries ...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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.