-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 29-Jul-2002/18:46 +0800, gary <[EMAIL PROTECTED]> wrote: >How to send an email in command line, where can change sender name??? > >eg. mailx -s <Subject> <to-add>
The mail/mailx command does not allow that. You can build a message in a file and pipe it to sendmail. The file must include the required headers, a blank line, then the body of the message. It could look like this: From: "Full Name" <[EMAIL PROTECTED]> To: "Full Name" <[EMAIL PROTECTED]> Subject: Some text here Message body line 1. Message body line 2. Input the result to sendmail using the "-t" option, which tells sendmail to read the addresses from the input: /usr/sbin/sendmail -t < messagefile.txt Tony - -- Anthony E. Greene <mailto:[EMAIL PROTECTED]> OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D AOL/Yahoo Chat: TonyG05 HomePage: <http://www.pobox.com/~agreene/> Linux: the choice of a GNU Generation. <http://www.linux.org/> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Anthony E. Greene 0x6C94239D <[EMAIL PROTECTED]> iD8DBQE9RX6hpCpg3WyUI50RAsKxAJ4vEp6VBzWpX6295lVg6OwdRkXCtwCgiFsa G/X7DBURKg9wGfSohiEIN+g= =0Kxc -----END PGP SIGNATURE----- _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list