Re: two small issues with php mail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxx';
$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@xxxxxxxxxxxxxx'; $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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux