473,385 Members | 1,329 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,385 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 2131
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 ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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: 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...

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.