Send Email from Command Line

· Windows Scripts

If you would like to send an email from the command line, modify the code below to fit your needs. You will need to manually type in each of the lines.

Source: http://support.microsoft.com/kb/153119

telnet smtp.mydomain.com 25
EHLO mydomain.com
MAIL FROM:me@mydomain.com
RCPT TO:you@yourdomain.com
DATA
Subject: Test Message
This is a test message
.
QUIT
author image

About Joseph Spurrier

I'm passionate about building solutions to automate tasks and improve efficiency. Tech guy. Traveler. Runner. Guitar player. Scotch and beer enthusiast. Keybase GitHub Gists LinkedIn Twitter

Share this post


Comments powered by Disqus