Mail Function Parameters

From: Date: Thu, 23 Jan 2003 14:12:25 +0000
Subject: Mail Function Parameters
Groups: php.general 
Request: Send a blank email to php-general+get-132833@lists.php.net to get a copy of this message
I have a site with a PHP auto-mailer where the owner of the site gets a report generated from the DB, it all works fine, except his server has spam filtering enabled so the FROM header in my PHP-Generated email, which says "apache@hostname" doesn't work because what the hostname is set to, isn't resolveable outside our network. Now I know I can just set the servers hostname to a valid DNS name, but this brings up another problem, even though I'm manually setting the "From" and "Reply-to" headers in the PHP mail command (the last parameter), when the email's are listed in his box, it works, if you open the headers in the email near the very top it still says "From: apache@hostname" and a little ways below it says the From and Reply-to I set. So, is there anyway to override the top From which says apache@hostname? Maybe setting additional parameters on my sendmail command line in the php.ini? Any ideas? I appreciate it. -- Adam Voigt (adam@cryptocomm.com) The Cryptocomm Group My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc

Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
« previous php.general (#132833) next »