Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDONTS Configuration

Status
Not open for further replies.

sifitz

Programmer
Feb 27, 2002
47
GB
Hi,

I have some CDONTS code that worked up until recently and it has stopped working.

I have the Default SMTP virtual server running with IP address set to (All assigned). All other settings are the default values but when I try to send the email, it appears in the mailroot/queue folder.

We have a separate exchange server and I am wondering if this might be having any effect on the IIS server.

I am using IIS 5 on Windows 2000 server (CDONTS 1.2) and the code I use is at the bottom.

Any help would be very helpful,

Thanks

Si Fitz



'=========================================================
Const TEST_RECIPIENT = <email address>
Const SENDER = <email address>

Sub SendEmail (address, subject, body, showDetails)
Dim objNewMail

Set objNewMail = Server.CreateObject(&quot;CDONTS.NewMail&quot;)

objNewMail.From = SENDER
objNewMail.To = address
objNewMail.Bcc = TEST_RECIPIENT
objNewMail.Subject = subject
objNewMail.Body = body

objNewMail.Send

Set objNewMail = Nothing
End Sub
'========================================================= [afro]
 
I have actually managed to get the code to work, but only sometimes. It only works when I send email to an email address outside of my work's LAN. The sender can be within the LAN though.

Any ideas on why this is, anybody?

Thanks,

Si Fitz [afro]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top