Batch File that creates and sends an email

Associate
Joined
3 Jan 2006
Posts
1,842
Location
South Wales
Can anyone write a batch file that opens outlook and creates an email then sends it to an address specified in the batch file. Also i will need to add a subject and body.

Code:
START mailto:[email protected]?subject=Test%%20messageˆ&[email protected]ˆ&body=Hi,%%0D%%0A%%0D%%0AThis%%20is%%20an%%20automatically%%20created%%20message.%%0D%%0A%%0D%%0ABye

This opens it and adds a subject but doesnt send it.
 
The reason I want it is so if someone clicks on the batch file it opens outlook, creates an email to a spcified user, with a specified subject and sends it.

The batch file is to hold all the info and it will email the same info each time.
 
Back
Top Bottom