Blat is the way forward. Blat is a small, efficent SMTP command line mailer for Windows. It is the SMTP sending part of an eMail User Agent (MUA) or eMail client. As such, Blat sends eMail via SMTP (or internet eMail) from the command line, or CGI, …

blat 1.txt -t [email protected] -attach 1.bmp -base64 -html

This will include the contents of 1.txt in the body of the email and attach the file 1.bmp. -attach is used for binary files and -attacht for txt files. You will need to configure a SMTP server.