mail
command does not report any -r
option if you run it with mail --help
(neither does the manpage mention it), but it's there and works. It's a bit hidden and you've to apply it in a special way.mail -s "subject" recipient@example.com -- -r "sender@example.com" -f /path/to/a/file
echo "This is the body." | mail -s "subject" recipient@example.com -- -r "sender@example.com"
Recent comments
2 years 34 weeks ago
4 years 3 weeks ago
4 years 3 weeks ago
4 years 5 weeks ago
4 years 6 weeks ago
4 years 13 weeks ago
4 years 13 weeks ago
4 years 13 weeks ago
4 years 13 weeks ago
4 years 14 weeks ago