Solved

What is this CDO mail object ERROR actually saying?

Posted on 2004-08-24
7
1,494 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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now