How to authenticate?

P

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
 
A

Anthony Jones

Paulo said:
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/smtpauthenticate"

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top