On 2003-04-04 23:45, David Banning <[EMAIL PROTECTED]> wrote: > > I am running a php program in a browser which eventually compiles some > files and emails them to a person of their choosing. The problem is > that the system identifies the browser user as nobody. > > I send the mail using a line something like; > > cat textfile | mutt -s"Quote/Attachments" -afile1 -afile2 [EMAIL PROTECTED] > > but the problem is that the recipient sees the sender address as from > "[EMAIL PROTECTED]", when I want it seen as "[EMAIL PROTECTED]". I > have the name of the user available in the script but I see no way of > running the mail script as that person since any browser viewing the > system is "nobody".
Try this: cat textfile | \ mutt -s "Subject here" \ -x -e 'set envelope_from=yes' -e 'my_hdr From: [EMAIL PROTECTED]' \ -a attachment1 -a attachment2 \ [EMAIL PROTECTED] The change is the addition of the two -e options and -x. - Giorgos _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"