Re: A shell script using mail
On Tue, 3 Oct 2000, Trent wrote:
> Is there an option to edit the from address using mail, I would like to
> change it to
> support@domain.com instead of root@domain.com.
Try using /usr/sbin/sendmail (or /usr/lib/sendmail) with the "-f" switch.
Usually on Debian boxes, sendmail is really exim (/usr/sbin/exim).
By using sendmail you'll need to pipe in the Subject: line.
(echo "Subject: new account" ; echo ; ) | exim -f support@domain.com newuser@otherdomain.com support@domain.com
Jeremy C. Reed
....................................................
BSD software, documentation, resources, news...
http://bsd.reedmedia.net/
Reply to: