From owner-freebsd-questions@FreeBSD.ORG Fri Apr 4 20:45:12 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 AB0DE37B404 for ; Fri, 4 Apr 2003 20:45:12 -0800 (PST) Received: from mail.clubplus.net (mail.clubplus.net [216.191.22.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9835343F75 for ; Fri, 4 Apr 2003 20:45:11 -0800 (PST) (envelope-from david@skytrackercanada.com) Received: from skytrackercanada.com (cust29.209.188.66.dsl.accessv.com [209.188.66.29] (may be forged)) by mail.clubplus.net (8.12.7/8.12.7) with ESMTP id h354l81W007531 for ; Fri, 4 Apr 2003 23:47:08 -0500 Received: (from root@localhost) by skytrackercanada.com (8.12.6/8.12.6) id h354j9uQ091988 for questions@freebsd.org; Fri, 4 Apr 2003 23:45:09 -0500 (EST) (envelope-from david@skytrackercanada.com) Received: from skytrackercanada.com (localhost [127.0.0.1]) by skytrackercanada.com (8.12.6/8.12.6) with ESMTP id h354j90P091962 for ; Fri, 4 Apr 2003 23:45:09 -0500 (EST) (envelope-from david@skytrackercanada.com) Received: (from david@localhost) by skytrackercanada.com (8.12.6/8.12.6/Submit) id h354j9tD091961 for questions@freebsd.org; Fri, 4 Apr 2003 23:45:09 -0500 (EST) (envelope-from david) Date: Fri, 4 Apr 2003 23:45:09 -0500 From: David Banning To: questions@freebsd.org Message-ID: <20030404234509.A91877@skytrackercanada.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-scanner: scanned by Inflex 1.0.12.3 - (http://pldaniels.com/inflex/) X-RAVMilter-Version: 8.4.2(snapshot 20021217) (mail) Subject: 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 04:45:13 -0000 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".