From owner-freebsd-questions Tue Jul 10 23:27: 0 2001 Delivered-To: freebsd-questions@freebsd.org Received: from femail3.rdc1.on.home.com (femail3.rdc1.on.home.com [24.2.9.90]) by hub.freebsd.org (Postfix) with ESMTP id 7F9B037B403 for ; Tue, 10 Jul 2001 23:26:57 -0700 (PDT) (envelope-from willwong@samurai.com) Received: from magus ([24.156.229.139]) by femail3.rdc1.on.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with SMTP id <20010711062656.EPTE8388.femail3.rdc1.on.home.com@magus>; Tue, 10 Jul 2001 23:26:56 -0700 Message-ID: <001d01c109d1$ac15a8c0$0300a8c0@anime.ca> From: "William Wong" To: "Jason" , References: <001b01c109d2$41814ea0$450a6441@Hunter> Subject: Re: sendimg mail using PHP from apache Date: Wed, 11 Jul 2001 02:21:07 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 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 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