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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to know email sent or not when use CDONTS?

Status
Not open for further replies.

stranger123

Programmer
Apr 16, 2006
76
GB
Hi,

I want to send emails by myEmail@account2.com when myEmail@account1.com is down something like:

set objCDO = Server.CreateObject("CDONTS.NewMail")
objCDO.From = "myEmail@account1.com"
......
objCDO.Send
If not success Then 'How to know not success??
objCDO.From = "myEmail@account2.com"
......
objCDO.Send
End If
set objCDO = Nothing

Any idea?
 
The CDO will just drop a text file in the \queue folder... the SMTP service polls this folder for new files... when it finds one it sends an email... if it fails it will eventually end up in the \badmail
 
Thank you for your help.
The IIS in a server that is not my server, what I can do in my ASP code?
 
Sheco,

I don't understqand: the SMTP service find a new file and sends it by the SMTP itself or by my email account?
If the delivary is by the SMTP only, the email will be send even when my email account is down. objCDO.From = "myEmail@account1.com"
is just for the receiver to reply?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top