Link to home
Start Free TrialLog in
Avatar of billrush2
billrush2

asked on

E-mail Notification Script

I need some code which will reliably send an e-mail notification to one or more recipients upon completion of running Microsoft's Sync Toy program.  I need the e-mail to contain the status message resulting from the SyncToy operation (either completed successfully, unable to complete,  etc.

Thanks,

Bill

ASKER CERTIFIED SOLUTION
Avatar of yotamsher
yotamsher

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of billrush2
billrush2

ASKER

Yotam,

Thanks - yes I will repost to learn how to tie this into a complete package.

Bill
Hey Bill

I didn't mean that you need a new question, just add another comment

Yotam
I need to know how to integrate the following script (using CDO) with SyncToy so that when SyncToy runs, the script runs and sends the result of the SyncToy operation (successful, errors, etc) in the body or subject line of the email generated by the script.

CDO Script

Set objEmail = CreateObject("CDO.Message")
objEmail.From = "monitor1@fabrikam.com"
objEmail.To = "christina@rushtech.net"
objEmail.Subject = "Atl-dc-01 down"
objEmail.Textbody = "Atl-dc-01 is no longer accessible over the network."
objEmail.Send


Bill