From owner-freebsd-questions Wed Jul 11 1:24:40 2001 Delivered-To: freebsd-questions@freebsd.org Received: from finch-post-10.mail.demon.net (finch-post-10.mail.demon.net [194.217.242.38]) by hub.freebsd.org (Postfix) with ESMTP id 1176337B403 for ; Wed, 11 Jul 2001 01:24:36 -0700 (PDT) (envelope-from simon.g@claycrossbs.co.uk) Received: from claycross.demon.co.uk ([194.222.107.197] helo=netadm) by finch-post-10.mail.demon.net with smtp (Exim 2.12 #1) id 15KFIP-000JKd-0A; Wed, 11 Jul 2001 08:24:33 +0000 From: "Simon Griffiths" To: "William Wong" Cc: , Subject: RE: sendimg mail using PHP from apache Date: Wed, 11 Jul 2001 09:24:34 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal In-Reply-To: <001d01c109d1$ac15a8c0$0300a8c0@anime.ca> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Take a look at your php.ini file, this usually defines who the mail will come from regardless of header information. This could also be extrapolated from the user the web server is running under. It should be one of those.... HTH, Si. > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of William Wong > Sent: 11 July 2001 07:21 > To: Jason; freebsd-questions@FreeBSD.ORG > Subject: Re: sendimg mail using PHP from apache > > > Your php code should call the mail fnc as follows: > > mail($to, $subj, $mesg, $from) > > I don't think it's a problem with apache. Look at your php code. > > - Will > > ----- Original Message ----- > From: "Jason" > To: > Sent: Wednesday, July 11, 2001 2:25 AM > Subject: sendimg mail using PHP from apache > > > I'm trying to send mail using a PHP script, with PHP running on a > FreeBSD/Apache server. I can send mail successfully, but the user shows up > as "Unprivileged user." The PHP script uses a from address, but it is not > used when the message is sent. Can I change Apache to get this to work, or > do I have to do something with the PHP script? Any suggestions would be > nice, and hopefully my problem is clear. > > Thanks, > Jason > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message