I have a batch process that runs various batch scripts. I would like the very last batch script to send a email stating that the process has completed and attach a .log file from a specific directory. Not sure what/if this is possible or not from batch or mailsend.exe. I'm playing around with mailsend but just can't quite get it to work the way I want. Here's my requirements:
1-The file I need to attach is named 'Essbase_Backup_Log.log' in the C:\Temp directory
2-Process needs to run in batch thus cannot prompt for anything
3-SMPT Mail Server is: RESISS045.res.newgold.com
4-I would like the recipients of the email to be in a separate text file named 'email_to.txt' in the C:\Temp directory
5-Email should be from 'Backup@newgold.com' - This is made up. Do I need a valid one?
6-Subject should read "Backup Completed".
7-Body of message should read "Backup has completed. Please see attached .log file for details."
Thats it. I can only get it to work if it prompts me. I can't get it to read anything from text files etc....