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/fileecho "This is the body." | mail -s "subject" recipient@example.com -- -r "sender@example.com"
Recent comments
1 day 15 hours ago
1 day 20 hours ago
3 days 3 hours ago
3 days 7 hours ago
3 days 12 hours ago
5 days 9 hours ago
1 week 10 hours ago
1 week 2 days ago
1 week 5 days ago
2 weeks 1 hour ago