Re: mail() question - caution newbie here

From: Date: Wed, 16 Apr 2003 07:22:53 +0000
Subject: Re: mail() question - caution newbie here
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144071@lists.php.net to get a copy of this message
A&M Rotondi wrote:
Hello, I've recycled some simple PHP mail scripts from the Web to create an embedded email form from within a Flash movie. Everything works fine, in everyone of them it did, but they all suffered from the same problem... the
FROM field in the email sent was not the FROM variable set within the page.
It's always the servers address: PHPMailer@host41.hrwebservices.net.
Look into the -f flag for sendmail(); For PHP something like this: $from_email = "whatever"; $sendmail_params = "-f$from_email"; mail($to, $subject, $body, $headers, $sendmail_params); Jean-Christian Imbeault

« previous php.general (#144071) next »