E=mc2
asked on
Configuring a bat script to send an email
Simple command to send en email to an internal network user within a .bat script
ASKER
Thank you. I was hoping to do this directly in the .bat file without having to employ Powershell or VBS or any other scripting, but directly in the .bat file.
As of my knowladge there is no way for doing it without using scripting such as powershell.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I second blat - as suggested by Shaun - I'm using it as well (no points please).
There is no way to do this just in native DOS commands in a BAT file, sorry. You either need to use some other scripting language (I often execute a small VBS script from the BAT script) or use a utility like BLAT to do the mail sending. There are a small handful of these command line email utilities, if you are interested in those search around previously answered questions on this site. If you can't find them let me know I'll point you towards some. But I don't want to go too far if you can't use either utility or other scripting languages.
»bp
»bp
It seems that SHaun Vermaak solution is close enough to what the Author looked for.
look at the following article How to Send Email From the Command Line in Windows (Without Extra Software)