Reputation: 3512
I use Microsoft Outlook for emailing.
My batch script does some checking and I want it to send out email automatically without me doing any clicking manually.
I have this code in my batch file.
START mailto:[email protected]?Subject=TEST^&body=TEST_MSG.
all code creates new email in outlook with subject, email and body filled but it doesn't actually send it without me clicking send.
Can someone help pls?
Upvotes: 0
Views: 2395
Reputation: 24575
The most straightforward way to send an e-mail message from a batch file (shell script) is to use a command-line mail application such as blat. However you will need to know the name (or address) of the SMTP server to use as well as permission to send. For that information, contact your network administrator.
Upvotes: 2