A. If you have Microsoft IIS with SMTP installed on a server, you can use the following code to send a basic email message from within a script:
Set objMessage = CreateObject("CDO.Message") objMessage.Subject = "Subject" objMessage.Sender = "firstname.lastname@example.org" objMessage.To = "email@example.com" objMessage.TextBody = "Your identity is compromised." objMessage.Send(Substitute your own email information and message text.) You can insert this code into any script that requires a message to be sent.