From owner-freebsd-isp Sat Aug 17 2: 2:44 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 24C5737B400 for ; Sat, 17 Aug 2002 02:02:41 -0700 (PDT) Received: from mail.seattleFenix.net (seattleFenix.net [216.39.145.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BA5743E65 for ; Sat, 17 Aug 2002 02:02:40 -0700 (PDT) (envelope-from roo@mail.seattleFenix.net) Received: (from roo@localhost) by mail.seattleFenix.net (8.11.6/8.11.6) id g7H92DG09932; Sat, 17 Aug 2002 02:02:13 -0700 (PDT) (envelope-from roo) Date: Sat, 17 Aug 2002 02:02:13 -0700 From: Benjamin Krueger To: francisv@dagupan.com Cc: kevin@caomhin.demon.co.uk, freebsd-isp@FreeBSD.ORG Subject: Re: Setting default e-mail sender on Apache Message-ID: <20020817020213.J3109@mail.seattleFenix.net> References: <10F29E27A956D511B0940050DA8D86A985C568@mailserver.dagupan.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <10F29E27A956D511B0940050DA8D86A985C568@mailserver.dagupan.com>; from francisv@dagupan.com on Sat, Aug 17, 2002 at 08:19:37AM +0800 X-PGP-Key: http://www.macguire.net/benjamin/public_key.asc Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org * francisv@dagupan.com (francisv@dagupan.com) [020816 17:16]: > Adding $headers to any outgoing mail doesn't work with Postfix :-/ > > -----Original Message----- > From: Kevin Golding [mailto:kevin@caomhin.demon.co.uk] > Sent: Monday, August 12, 2002 9:37 PM > To: francisv@dagupan.com > Cc: freebsd-isp@freebsd.org > Subject: Re: Setting default e-mail sender on Apache > > Someone, quite probably , once wrote: > >but testing the web application still sends e-mail coming from the ID > runnig > >the web process. BTW, my MTA is Postfix if this helps in troubleshooting > the > >problem. Thanks also for the link :) > > It's imperfect but you could always try telling them to use: > > $headers = From: webmaster@client.tld > mail("to@address.com", "Subject line", "Test message", $headers); > > > What do you get from a phpinfo()? (just the mail settings really) > > Kevin > -- > kevin@caomhin.demon.co.uk This does work with Postfix. I use it all the time. See the following code snippet. $headers = "From: TheDude@somewhere.dom\n"; $headers .= "X-Origin-IP: $REMOTE_ADDR\n"; $headers .= "X-HTTP-Agent: $HTTP_USER_AGENT\n"; $headers .= "X-Mailer: SomeSoftware (C) 2002 Benjamin Krueger\n"; $headers .= "cc: $cc\n"; $to = "someone@somewhere.dom"; $subject = "my subject"; $mail_body = "my message"; mail($to, $subject, $mail_body, $headers); Regards, -- Benjamin Krueger "Life is far too important a thing ever to talk seriously about." - Oscar Wilde (1854 - 1900) ---------------------------------------------------------------- Send mail w/ subject 'send public key' or query for (0x251A4B18) Fingerprint = A642 F299 C1C1 C828 F186 A851 CFF0 7711 251A 4B18 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message