How to specific the name for the receipt when using the program 'mail'?

Nils Kassube kassube at gmx.net
Wed Mar 18 17:31:32 UTC 2015


Peng Yu wrote:
> Something like the following does not work.
> 
> echo 'Message body' | mail -s 'Email subject' 'First
> Last<somebody at example.com>'
> 
> Does anybody know how to specific the name of the recipient? Thanks.

Works for me - according to [1] you may only use US-ASCII characters for 
the header fields. Are you perhaps using characters from a different 
coding for the name?


Nils

[1] <http://en.wikipedia.org/wiki/Email#Header_fields>





More information about the ubuntu-users mailing list