Re: IMF vs SmtpMail

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Nick Malik [Microsoft] (nickmalik_at_hotmail.nospam.com)
Date: 02/24/05


Date: Thu, 24 Feb 2005 08:01:55 -0800

Hi Kal,

Ignore the advice to uninstall IMF.

You need to send authenticated e-mail.

You can do this either with Windows authentication (e.g. the service account
or app pool account running your application), or you can pass the
credentials to the SMTP server. Both methods can be done with CDOSYS.

There is an excellent FAQ at SystemWebMail.com with a good topic on sending
authenticated e-mail to your SMTP server.
http://www.systemwebmail.com/faq/3.8.aspx

One thing missing from that faq: if you set smtpauthenticate to "2" then
you are using Windows Authentication.

-- 
--- Nick Malik [Microsoft]
    MCSD, CFPS, Certified Scrummaster
    http://blogs.msdn.com/nickmalik
Disclaimer: Opinions expressed in this forum are my own, and not 
representative of my employer.
   I do not answer questions on behalf of my employer.  I'm just a 
programmer helping programmers.
--
"Kal" <kal@newsgroup.nospam> wrote in message 
news:eCAEfFbGFHA.2156@TK2MSFTNGP10.phx.gbl...
> This began when I installed the Intelligent Message Filter on the Exchange 
> Server 2003 I use to send the mail:
> "Error sending email: The message could not be sent to the SMTP server. 
> The transport error code was 0x800ccc69. The server response was 550 5.7.1 
> Requested action not taken: message refused"
>
> And from the Exchange Server Event Log:
> "The message with ID 
> <000001c5190f$32fd44b0$0302010a@sierra.todomain.com>, P1 From 
> smtp:kal@fromdomain.com, Subject  email test, from remote host 
> "EXCHANGESERVER"   was Rejected/Deleted by Intelligent Message Filter. 
> This is an informational event and does not indicate an error.
>
> MSExchangeTransport
> SMTP Protocol
> Event ID: 7512"
> The same thing happens with ASP code taken from the MSDN article "Sending 
> SMTP Mail by Port 25 Using CDOSYS". These give error messages '8004020f' 
> and '0x80040211' but I believe it is the same problem.
>
> Is there a way to use CDO (I guess SmtpMail uses this) and not have the 
> message trapped?
>
> Kal
>