How to change sender name (not email address) when using the linux mail command for autosending mail? [closed]
You just need to add a From: header. By default there is none. echo “Test” | mail -a “From: Someone <[email protected]>” [email protected] You can add any custom headers using -a: echo “Test” | mail -a “From: Someone <[email protected]>” \ -a “Subject: This is a test” \ -a “X-Custom-Header: yes” [email protected]