Solved

What is this CDO mail object ERROR actually saying?

Posted on 2004-08-24
7
1,506 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

623 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