Japanatron Logo

I struggled a bit with figuring out how to specify the from email address when sending mail on the Linux command line.  In short, you need to use the -r option.  For example:

echo "Enter your message here.  Thank you." | mail -s "Enter your subject here" -r This email address is being protected from spambots. You need JavaScript enabled to view it. This email address is being protected from spambots. You need JavaScript enabled to view it.

Related Articles

The Hunt for the Ultimate Free...

In the hopes of reducing my monthly smartphone bill, I've been investigating the current state of VoIP and its potential to completely replace the traditional m...

Ubuntu 22.04 Nginx Build Outli...

I re-built my LEMP web-server fresh on Ubuntu 22.04 and learned some things along the way. This is my base build outline mostly created for my own notes. INS...

Safeguarding Your Digital Life

This is an outline of a presentation I delivered called "Safeguarding Your Digital Life."  It summarizes best practices to follow for keeping your online identi...

Why Linux is Cool

Linux proudly sits in a very special place in the heart of the IT world. Watching Linux pros clack away at the command line inspires a sense of awe and ador...