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. I worked for a few companies in the digital healthcare space. My education is in forensics. Tech guy. Traveler. Runner. Guitar player. Scotch and beer enthusiast. GitHub LinkedIn Twitter Google+

Share this post


Comments powered by Disqus