Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jul 2001 09:24:34 +0100
From:      "Simon Griffiths" <simon.g@claycrossbs.co.uk>
To:        "William Wong" <willwong@samurai.com>
Cc:        <jason@borderpatrolclan.net>, <freebsd-questions@FreeBSD.ORG>
Subject:   RE: sendimg mail using PHP from apache
Message-ID:  <NEBBJFKEHEOLHKCGOHFOKEKPCJAA.simon.g@claycrossbs.co.uk>
In-Reply-To: <001d01c109d1$ac15a8c0$0300a8c0@anime.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <jason@borderpatrolclan.net>
> To: <freebsd-questions@FreeBSD.ORG>
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NEBBJFKEHEOLHKCGOHFOKEKPCJAA.simon.g>