two small issues with php mail

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

 



Implementing Bcc and smtp.

 

#1 email is only being sent to a few recipients.

I need to implement 

$smtp = ‘localhost’; 

Somewhere, but I keep getting parse errors?

 

#2 trying to do a Bcc but that gives me parse errors as well

It should be as easy as?

$Bcc ‘some@xxxxxxxxxxx’; $eol = "\r\n";

 

Here is the working code, but if I implement the above needed inserts
anywhere, I get a big ‘ol fat parse error

 

Any assistance would be truly appreciated.

An explanation of why would really help since this is for a school project.

 

Working code as is:

 

<?

$email = $_REQUEST['email'];

$fromaddress = 'admin@xxxxxxxxxxxxxxxxxxxxx';

$fromname = 'Zone of success Club'; $eol = "\r\n";

$headers  = 'From: '.$fromname.' <'.$fromaddress.'>'.$eol;

// $headers = 'bcc: 'kathyandrews@xxxxxxxxxxxxx';

$headers .= 'Reply-To: '.$fromname.' <'.$fromaddress.'>'.$eol;

$headers .= 'Return-Path: '.$fromname.' <'.$fromaddress.'>'.$eol;

$headers .= 'X-Mailer: PHP '.phpversion().$eol;

$headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol;

$headers .= 'Content-Transfer-Encoding: 8bit';

$subject = 'Your free book!';

$body = '<a
href="http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf";>"Click
ME"</a>  Here is your FREE autopilot book!!!!';

mail($email, $subject, $body, $headers);

?>


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

[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