[KLUG Members] mailx command

Bruce Smith members@kalamazoolinux.org
24 Feb 2003 13:04:02 -0500


> Thanks Bruce. Well, I am trying to write a perl script
> which calls the "mail" command in red hat linux 7.3
> but "mail" doesnt allow me to change the from address
> of the mail... mailx allows me to change the from
> address by typing the following message
> 
>    mailx -s subject -r from@wmich.edu
> jaypatel@wmich.edu < actualMailfile
> 
>    but the mail command doesnt allow to change the
> from address and doesnt have -r option. Can you
> suggest me if there is some other way of doing it.

When I need to change something special like "from",
I call the sendmail command directly, specifying the
headers in the correct format as part of the input.

--------------------------------------------
Bruce Smith                bruce@armintl.com
System Administrator / Network Administrator
Armstrong International, Inc.
Three Rivers, Michigan  49093  USA
http://www.armstrong-intl.com/
--------------------------------------------