Tech Tip : Sending Email from Command line | Linux Today

Tech Tip : Sending Email from Command line

Written By
Web Webster
Web Webster
May 28, 2010

[ Thanks to GeekRide
for this link. ]

“Everyone is not as lucky as having a full fletched
email client like thunderbird or kmail to send mails. There is one
unlucky group known as system administrators who have to send the
mails either through the command line or a script running on the
remote server. Also, apart from sending the emails, sometimes one
needs to test or debug the email server which can’t be done by
traditional email clients. If you are one of those system
administrators and are scared, then you shouldn’t be, because this
is where netcat comes to rescue.

“Netcat( /usr/bin/nc ) is a simple utility which is used with
TCP/UDP connections, sometime to troubleshoot and sometime as a
bridge to interact with them. In our case, if we would like to send
a email through port 25, we should be able to feed the stream of
data containing the mail information to port 25, and that is what
netcat is for.”


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.