Re: two small issues with php mail

From: Date: Tue, 20 Nov 2007 07:26:45 +0000
Subject: Re: two small issues with php mail
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-264841@lists.php.net to get a copy of this message
Brad wrote:
It makes sense, but the Bcc is still not making it through. Not sure if the smtp portion is correct either. No parse errors, but no email from the bcc either. <? $email = $_REQUEST['email']; $fromaddress = 'admin@ggggggggggggggggg.com'; $fromname = 'Zone of success Club'; $eol = "\r\n"; $smtp = "localhost";
I told you this earlier!!! NOTICE: you are trying to use $eol here....
$headers = 'From: '.$fromname.' <'.$fromaddress.'>'.$eol;
but you don't define it until HERE.
$headers .= 'Bcc: webmaster@gggggggggg.com'; $eol = "\r\n";
MOVE IT TO THE TOP OF YOUR SCRIPT!!! secondly, this would have been averted if you would turn on error reporting and display errors (something that should be used when developing). Something along the line of this at the top of your script will do the trick. <?php // Sets error reporting level to a somewhat high level of reporting. error_reporting(E_ALL); // Sends error messages to the browser ini_set('display_errors', 1); ... ?> -- Jim Lucas "Perseverance is not a long race; it is many short races one after the other" Walter Elliot "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare

« previous php.general (#264841) next »