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

My 30-Day Trial of Google Apps...

Although I adore running my own mail server, I was curious about Google Apps for Work, specifically Gmail for Work.  Could it block spam as effectively as my ow...

Linux - How to Mount Clonezill...

Make sure the partclone package is installed.apt-get install partcloneCreate an empty image file.touch image-file.imgRestore the clonezilla files into the image...

Joomla - Checklist for Moving ...

* Remove web directory protection entries * Rsync files to the new location * Change Apache root folder settings * Redo web directory protection entries * U...

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...