Re: FW: [PHP] two small issues with php mail
| From: | Chris | Date: | Tue, 20 Nov 2007 01:45:24 +0000 |
| Subject: | Re: FW: [PHP] two small issues with php mail | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-264829@lists.php.net to get a copy of this message | ||
Working code:Correction - non-working code ;)
<? $email = $_REQUEST['email']; $fromaddress = 'admin@xxxxxxxxxxxx.com'; $fromname = ‘ggggggggggggg'; $eol = "\r\n"; $smtp = "localhost"; $headers = 'From: '.$fromname.' <'.$fromaddress.'>'.$eol; $headers .= 'Bcc: webmaster@xxxxxxxxxxxx.com'; $eol = "\r\n";This should be: $headers .= 'Bcc: email@address.com' . $eol; You need the EOL on the end. Plus afaik in email headers it's \n not \r\n. -- Postgresql & php tutorials http://www.designmagick.com/