If the SMTP server included with IIS is installed, you can use the Echo command to write the file to the pickup folder and it will be sent.
echo From: test@example.com>tmp.txt
echo To: test@example.com>>tmp.txt
echo Subject: hello>>tmp.txt
echo.>>tmp.txt
echo Hello world>>tmp.txt
copy tmp.txt \Inetpub\mailroot\Pickup
source
share