Generate Email Using Exchange Server Account from .bat Script
Posted on 2014-03-24
I am developing a process by which an employee in my accounting department can run a script that will edit a text file and then send an email. We use exchange server and the email is running on server03 while the batch script will actually be on server04. I have spent most of the day going through previous posts and Google to look for a solution. I see a number of suggestions for blat and sendmail but all seem to be relating to a web hosted SMTP email with nothing directly mentioning how to pull this off in a corporate environment using exchange.
I want to generate an email in the .bat file that will generate an email with the following parameters:
Subject: File AUTOPOST.INI has been Edited
Body: S-FSIFL has been added to AUTOPOST.INI file.
And that's it. Sounds so simple but I have spent a lot of time trying to find examples that just do not seem to fit.
Thanks in advance!