windows - How do I send an email from a DOS batch command? -


I have been a batch file that checks in DOS and I need to turn off email is required I I found some solutions on Intrvebjh, but most of them are third-party or simply open a new message in Outlook

we use MS exchange, if it counts.

Thank you!

Assume:

  1. Your Exchange Server SMTP on port 25 Accepts email
  2. You want to send an ordinary text-only email without attachments.
  3. It is possible to drive telnet (or a similar telnet client) from the batch file.

If you only send a simple email to Telnet, this example shows how this link shows:

If assumptions 2 or 3 are incorrect, Send simple email to and then call it from your batch file can write a command line SMTP client.


Comments