How to authenticate?

How to authenticate?

am 31.01.2008 19:30:24 von PaulO

Hi, how can I authenticate before sending email? my ISP needs to be
authenticated!

Using CDO.Message on W2k3 SBS and classic ASP

thanks

Re: How to authenticate?

am 31.01.2008 23:14:05 von Anthony Jones

"Paulo" wrote in message
news:O$EaLeDZIHA.4712@TK2MSFTNGP04.phx.gbl...
> Hi, how can I authenticate before sending email? my ISP needs to be
> authenticated!
>
> Using CDO.Message on W2k3 SBS and classic ASP
>


Try:-

Const cdoSendUserName =
"http://schemas.microsoft.com/cdo/configuration/sendusername "

Const cdoSendPassword =
"http://schemas.microsoft.com/cdo/configuration/sendpassword "

Const cdoSMTPAuthenticate =
"http://schemas.microsoft.com/cdo/configuration/smtpauthenti cate"

Const cdoBasic = 1

msg.Configuration.Fields(cdoSMTPAuthenticate ) = cdoBasic
msg.Configuration.Fields(cdoSendUserName) = "yourUsername"
msg.Configuration.Fields(cdoSendPassword ) = "yourPassword"
msg.Configuration.Update

When you call .send CDO should authenticate with the SMTP server using the
username and password specified.


--
Anthony Jones - MVP ASP/ASP.NET