15Mar

How do you write a DOS script that sends mail?

2 comments so far


I am running Windows Server 2003. I want to write a script which can send mail. I have some text in a file and I want the script to email the content of the file to an email address. The content of the file will change every time I email it, but the email address will stay the same. I have Mercury/32 Mail Server and Microsoft Outlook mail client installed.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • StumbleUpon
  • Reddit
  • Webnews
  • MisterWong
  • Y!GG
Categories: Programming & Design

Monday, March 15th, 2010 at 12:39 am and is filed under Programming & Design. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

2 Responses to “How do you write a DOS script that sends mail?”

  1. Posted by Rajesh 17th March, 2010 at 3:35 pm

    If you have permission on relay server, you can use sendmail tool with the help of batch files

  2. Posted by Mr.Klaus 19th March, 2010 at 7:13 pm

    Check out blat. Its nice, free, and easy

Leave a reply