Configuration:
- ASP.NET web service running on a Windows 2000 server.
- Exchange server running on a Windows 2000 server.
- The web server and the exchange server are on different computers in the
network.
Problem:
Whenever I try to send an email, via my ASP.NET web service, using the
SmtpMail object I receive the following HttpException message: "Could not
access 'CDO.Message' object." Now, the interesting thing is that this will
only occur when I try to send an email to a domain address other than our
internal network domain. For example, me@mycompany.co m works. But, me@hotmail.com produces the above error.
Thank you in advance for any suggestions.
Mark Sanders 2 1849
I don't think I've encountered this error, but I've encountered too
many when using Web and Windows services. My solution. Write my own. http://www.kbcafe.com/articles/HowTo.SMTP.CSharp.pdf
Randy http://www.kbcafe.com
"Mark Sanders" <ma**********@h otmail.com> wrote in message news:<eA******* *******@TK2MSFT NGP12.phx.gbl>. .. Configuration: - ASP.NET web service running on a Windows 2000 server. - Exchange server running on a Windows 2000 server. - The web server and the exchange server are on different computers in the network.
Problem: Whenever I try to send an email, via my ASP.NET web service, using the SmtpMail object I receive the following HttpException message: "Could not access 'CDO.Message' object." Now, the interesting thing is that this will only occur when I try to send an email to a domain address other than our internal network domain. For example, me@mycompany.co m works. But, me@hotmail.com produces the above error.
Thank you in advance for any suggestions. Mark Sanders
Or, you could consider using CSLMail from http://www.wintoolzone.com/showpage....how=components
--------------------------------------------------
Kumar Gaurav Khanna
Microsoft MVP - .NET, MCSE Windows 2000/NT4, MCP+I
WinToolZone - Spelunking Microsoft Technologies http://www.wintoolzone.com/
OpSupport - Spelunking Rotor http://opsupport.sscli.net/
"Randy Charles Morin" <rm****@kbcafe. com> wrote in message
news:a4******** *************** ***@posting.goo gle.com... I don't think I've encountered this error, but I've encountered too many when using Web and Windows services. My solution. Write my own. http://www.kbcafe.com/articles/HowTo.SMTP.CSharp.pdf
Randy http://www.kbcafe.com
"Mark Sanders" <ma**********@h otmail.com> wrote in message
news:<eA******* *******@TK2MSFT NGP12.phx.gbl>. .. Configuration: - ASP.NET web service running on a Windows 2000 server. - Exchange server running on a Windows 2000 server. - The web server and the exchange server are on different computers in
the network.
Problem: Whenever I try to send an email, via my ASP.NET web service, using the SmtpMail object I receive the following HttpException message: "Could
not access 'CDO.Message' object." Now, the interesting thing is that this
will only occur when I try to send an email to a domain address other than
our internal network domain. For example, me@mycompany.co m works. But, me@hotmail.com produces the above error.
Thank you in advance for any suggestions. Mark Sanders This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: arkam |
last post by:
Hi,
I tryed to send an email with the smtpmail class in the .net framework
and I got an error in Outlook.
Here is my code:
System.Web.Mail.MailMessage mail = new System.Web.Mail.MailMessage();
mail.From = "toto@toto.to";
|
by: Jason |
last post by:
Hi
not sure if this is the write place, but i really need some help with
this...!
I have a piece of code that sends email using the SmtpMail class, in an
ASP.NET web application, with integrated window authentication.
it does work, and works fine on my dev machine. it also works fine on the
test server, but with some considerations.
on the test server, i can send emails IF they do not include any
attachments. as soon as i send an email...
|
by: Cameron Eckman |
last post by:
I get various errors when I try to use email on the machine I have. XP
professional. It works fine on another machine with NT 2000 server. Below
is the code:
'BEGIN CODE
Dim oMail As New MailMessage()
With oMail
.From = "mypc@baxglobal.com"
.To = "ceckman@baxglobal.com"
|
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.
--------------------------------------------------------------------------------
|
by: Erwan |
last post by:
I have a strange (but very blocking) result when using the smtpmail
class from an ASPX page :
here is the (very simple !) code...
'--------------------------------------------------
mail.To = "el@illico.fr"
mail.From = "el@illico.fr"
mail.Subject = "test envoi de mail"
mail.Body = "test envoi de mail"
| |
by: Edward |
last post by:
Hello, everybody,
I tried to send Email out using ASP.NET, but failed, here is the code of sending:
--------------------------------------------------------------------------------
Try
Try
'SmtpMail.SmtpServer = "smtp.citiz.net"
|
by: Jens |
last post by:
Hi
I am writing a ASP.NET web application that must sent some e-mails.
I get the exception “Could not access 'CDO.Message' object” when I call SmtpMail.Send. This only happens when I send e-mail addresses out side my company walls. When the e-mail is send on some one in my company it works perfect.
I think it is a relay issue. Our system administrator will not allow relaying.
In the ASP.Net web.config file I let the web application...
|
by: Michael |
last post by:
Hello,
I've read a lot of threads on this subject, but they typically go back to a problem with the smtp server configuration. In my case, everything works great until I uncomment the one line below. Once I set the BodyFormat to MailFormat.Html then I get:
HttpException (0x80004005): Could not access 'CDO.Message' object
Otherwise, everything works fine and I get my html tags in plain text. I've got it working (in plain text) with my...
|
by: Aren Cambre |
last post by:
Why does SmtpMail.Send throw an exception if the MailMessage's
BodyFormat = MailFormat.Html? I've searched all over the place and
cannot find a solution anywhere. I am running this on Windows XP SP2,
and IIS's SMTP and WWW servers are installed.
Here is the error trace:
System.Web.HttpException: Could not access 'CDO.Message' object. --->
System.Reflection.TargetInvocationException: Exception has been thrown
by the target of an...
|
by: zdrakec |
last post by:
Hello all:
Using an "Imports System.Web.Mail" clause at the head of my module, and
after executing the following code:
Dim msg As New MailMessage
msg.From = sender
msg.To = recipient
msg.Attachments.Add(New MailAttachment(attachFile))
msg.Subject = subjectString
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look !
Part I. Meaning of...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |