Anthony Fox wrote: > > > This is on a Linux machine and mail is sent using mailx's mail program. > > The MTA is sendmail (which I know little about). > > > > If there's anything as simple as setting an appropriate environment > > variable, that'd be just cool. The mail sending is done inside a > > (bourne) shell script. > > You could call sendmail itself from the shell script. i.e. > > #!/bin/bash > > [EMAIL PROTECTED] > [EMAIL PROTECTED] > > /usr/sbin/sendmail -t <<EOF > To: $TO > From: $FROM > Subject: Whatever > > The message > > EOF > > This way, you could dynamically set TO and FROM variables to whatevery you > want.
Thanks tons! Exactly what I was looking for!! Amazing list this is! Cheers Sven