Date: Sun, 6 Apr 2003 05:37:24 +0300 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: David Banning <david@skytracker.ca> Cc: questions@freebsd.org Subject: Re: sending mail with a script question Message-ID: <20030406023724.GB3863@gothmog.gr> In-Reply-To: <20030404234509.A91877@skytrackercanada.com> References: <20030404234509.A91877@skytrackercanada.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2003-04-04 23:45, David Banning <david@skytracker.ca> 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 john@doe.com > > but the problem is that the recipient sees the sender address as from > "nobody@ourhost.com", when I want it seen as "david@ourhost.com". 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: sender@address.net' \ -a attachment1 -a attachment2 \ john@doe.com The change is the addition of the two -e options and -x. - Giorgos
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030406023724.GB3863>