[Techtalk] PHP question

Raquel raquel at thericehouse.net
Wed Nov 29 07:37:13 UTC 2006


On Wed, 29 Nov 2006 08:27:37 +0100
Chantal Rosmuller <chantal at antenna.nl> wrote:

> On Tuesday 28 November 2006 18:02, Raquel wrote:
> > On Tue, 28 Nov 2006 13:01:14 +0100
> >
> > Chantal Rosmuller <chantal at antenna.nl> wrote:
> > > Hi everyone,
> > >
> > > I hope I can also ask a PHP question here, I also sent it to
> > > the PHP general  mailing list but up to now I haven't gotten
> > > the answer I was looking for.
> > >
> > > I'm working on a mailform and it's kind of working but I still
> > > have 2  problems:
> > >
> > > 1) I can't get the From header right, when I receive the test
> > > mail the sender  is apache
> > > 2) The BCC headers (there's more then one) are not stripped.
> >
> > I always used the PHPMailer class.  It just made accessing mail
> > easier.  However, one of the problems you're having still
> > remained, even using the PHPMailer class.  Mail sent using a
> > script on your web server is "automatically" sent using the web
> > server user.  In your case, I think that user is "apache".  To
> > me, this indicates you need to make some changes to your MTA,
> > which is doing the "automatic" replacement.
> >
> > Do you run your own mail server?  What MTA are you using?
> 
> Hi Raquel, 
> 
> thanks for your reply, I did try the PHPMailer class and the From
> header  problem remained just like you said. I'm using postfix but
> the script has to  run eventually on a shared webserver so
> changing the MTA settings is not an  option.
> 
> Regards Chantal

I'm not familiar with Postfix.  However, I think that the From:
header is being overwritten by Postfix.

Like I said, when I first began "playing with" mail, it was with
Perl and then PHP.  The same thing happened to me then.  It was such
a long time ago that I don't remember what I did to fix it, unless
it was to properly setup "masquerade_envelope".

-- 
Raquel
============================================================
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety.
  --Benjamin Franklin



More information about the Techtalk mailing list