KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Sending a message from the Unix command line using mail TO_ADDR results in an email from $USER@$HOSTNAME . Is there a way to change the "From:" address inserted by mail ? For the record, I'm using GNU Mailutils 1.1/1.2 on Ubuntu (but I've seen the same behavior with Fedora and RHEL). [EDIT] $ mail -s Testing chris@example.org Cc: From: foo@bar.org Testing . yields Subject: Testing To: <chris@example.org> X-Mailer: mail (GNU Mailutils 1.1) Message-Id: <E1KdTJj-00025z-RK@localhost> From: <chris@localhost> Date: Wed, 10 Sep 2008 13:17:23 -0400 From: foo@bar.org Testing The "From: foo@bar.org" line is part of the message body, not part of the header.
Tags (comma-separated)
Save Edits
Cancel