Solved

What is this CDO mail object ERROR actually saying?

Posted on 2004-08-24
7
1,499 Views
Last Modified: 2008-01-09
First I was getting the error cannot access 'CDO.message' object and after doing a more detailed error I get

The following exception occurred: System.Web.HttpException: Could not access 'CDO.Message' object. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x8004020F): The server rejected one or more recipient addresses. The server response was: 550 5.2.1 Mail from 216.55.145.245 refused: spam site. --- End of inner exception stack trace --- at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) --- End of inner exception stack trace --- at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) at System.Web.Mail.CdoSysHelper.Send(MailMessage message) at System.Web.Mail.SmtpMail.Send(MailMessage message) at DMS.inside.general.demo.index.Button1_Click(Object sender, EventArgs e) in C:\Inetpub\wwwroot\DMS\inside\general\demo\index.aspx.cs:line 114--------------------------------The following InnerException reported: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x8004020F): The server rejected one or more recipient addresses. The server response was: 550 5.2.1 Mail from 216.55.145.245 refused: spam site. --- End of inner exception stack trace --- at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args)--------------------------------The following InnerException reported: System.Runtime.InteropServices.COMException (0x8004020F): The server rejected one or more recipient addresses. The server response was: 550 5.2.1 Mail from 216.55.145.245 refused: spam site.
0
Comment
Question by:dgelinas
  • 3
  • 3
7 Comments
 
LVL 6

Author Comment

by:dgelinas
ID: 11888830
Looks as though the SMTP server labeled the website using it as a SPAM site ? Am I correct?
0
 
LVL 17

Accepted Solution

by:
AerosSaga earned 500 total points
ID: 11891241
here in part of an article I found about this issue:

"Cowboy \(Gregory A. Beamer\) (VIP)
The first suggestion is to make sure your system date is correct, as this
causes CDO problems. This may or may not iron out all of your issues.

My second suggestion is to forgo CDO altogether. There is a great open
source .NET mail component called OpenSmtp on sourceforge.net. We did have
to change HELO to EHLO on one of our projects to get mail relaying outside
the domain (more a network admin power play than anything else). This was a
simple matter of finding the line in source that has HELO and changing to
EHLO. Everything worked great after that.

OpenSmtp allows you to set up authentication rather easily. Best to have the
network admins create an account for sending email that is restricted from
doing other things in the domain as it reduces any potential security risk.
You will need them to help set up the proper relay for your SMTP service to
Exchange (et al), if you are relaying in this manner, so they can be a great
resource for you.

Yes. This is spam protection as I said before. You NEED to authenticate
agains the SMTP server. The server is rejecting your message because it is
not for a local recipient, and it does not know who you are as a sender.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA"
http://www.dotnet247.com/247reference/msgs/41/206850.aspx

I think this will clear it up for you.

Regards,

Aeros

0
 
LVL 6

Author Comment

by:dgelinas
ID: 11891313
I'm using a shared host and I won't be able to install any other email components such as OpenSmtp..

How can I go about authenticating against the STMP server?  Does something need to be configured locally?
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 17

Expert Comment

by:AerosSaga
ID: 11891408
Well the jist of your problem is still the same, you will have to have your provider open smtp relay for your website on their smtp server.  Currently you have sent more messages than they allow if it worked at all, and you will not be able to send until they remove you from the blacklist and allow your messages to be sent.  In short you will need to contact your host to configure this for you.

Regards,

Aeros
0
 
LVL 6

Author Comment

by:dgelinas
ID: 11891423
My STMP server is hosted locally on my companies network.  So then I'll need to do that here, correct? I'm only going to be using the host for the website not the email.  
0
 
LVL 17

Expert Comment

by:AerosSaga
ID: 11891714
correct you will need to your IIS directory to be able to relay through the company smtp server, you will have to talk to your network guys and have them do this for you.

Regards,

Aeros
0
 

Expert Comment

by:KentJackson777
ID: 13602154
Virus Shield got me too but I kept getting the same error after correcting this setting. I found (after many runs with the Debugger) that my SMTP Server needed to allow my computer access to it in order to email any messages. This is simple outline of setting up this section of the SMTP Server.
(right click/Properties) Default SMTP Virtual Server Properties/Access/Relay/Add Computer IP
HTH,
Kent
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Question about JQuery and asp.net 3 31
asp.net web application 3 32
FInd Image Control Gridview 3 23
Where does legacy ASP.NET initialize language? 2 27
This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question