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

Ubuntu 20.04 Nginx Build Outli...

I re-built my LEMP web-server fresh on Ubuntu 20.04, and learned some things along the way. This is my base build outline. INSTALL PACKAGESnginx-extrasmysql-...

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

MS Outlook - None of your emai...

PROBLEMYou send email to a recipient, but immediately receive an error bounce-back message that says "None of your email accounts could send to this recipient."...

Windows - Turn Off Internet Ex...

Yes, I know it's a security feature, but it's very frustrating for my colleagues that constantly download PDFs via Internet Explorer, confirming each and every ...