Not sure you can do this in batch without a 3rd party program. Windows Script however offers a solution:
Set CDO = CreateObject("CDO.Message")
CDO.From = "youremailaddress"
CDO.To = "receipientaddress"
CDO.Subject = "text"
CDO.Textbody = "moretext"
CDO.AddAttachment "attachedfilename"
CDO.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
CDO.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "youremailservername"
CDO.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
CDO.Configuration.Fields.Update
CDO.Send
From, To, Subject, TextBody parameters should be self evident, change as needed. AddAttachment should be the path of the file you want to attach to the email. Change the SMTP server name to your ISP outgoing mail server name. Do NOT change any other parameters.
After saving the script with a
vbs extension, you can run it as
cscript scriptname.vbsThe script can also be launched from a batch file
8-)
From your PM's I got the information that you're using XP.