From owner-freebsd-questions@FreeBSD.ORG Sat Apr 5 03:40:56 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 17F1637B401 for ; Sat, 5 Apr 2003 03:40:56 -0800 (PST) Received: from pa-plum1b-166.pit.adelphia.net (pa-plum1b-122.pit.adelphia.net [24.53.161.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54FF643FBF for ; Sat, 5 Apr 2003 03:40:55 -0800 (PST) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com (working [172.16.0.95]) h35BesJP011118; Sat, 5 Apr 2003 06:40:54 -0500 (EST) (envelope-from wmoran@potentialtech.com) Message-ID: <3E8EB7A3.6050401@potentialtech.com> Date: Sat, 05 Apr 2003 06:01:55 -0500 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2.1) Gecko/20030301 X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Banning References: <20030404234509.A91877@skytrackercanada.com> In-Reply-To: <20030404234509.A91877@skytrackercanada.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: questions@freebsd.org Subject: Re: sending mail with a script question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2003 11:40:56 -0000 David Banning 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". Have you considered using php's "mail" function? You can specify a sender by specifying headers. -- Bill Moran Potential Technologies http://www.potentialtech.com