I have a mail script that works fine except that it does not send to the CC
in my header options... nor will it send to multiple addresses can some one
please give me some advice on this... I've looked in the php manual as well
as other web pages  but neither have an answer for me.

my code is below

Thanks in advance
Peter Houchin

/* recipients */

$address .= $email  ;//insert a comma after $ email to include another
address, email address taken from session varables

$date = date("D M d, Y ");

// Subject

$subject = "VFSA-eRentals Calculation Results";

//Body of email

$body = "Thank you $real_name ,\n
Company whom you are from:\t $company\n
Date of enquiry on \t $date\n
Your Customer type is:\t $custtype\n
Your Reference is:    \t $ref\n
Your Quote was for:   \t $equcost\n
Your Rental Monthly Figures are as follows:\n
\n 24 Months = $ $m2 \n 36 Months = $ $m3 \n 48 Months = $ $m4 \n
Your Quartly Figures are: \n
\n 24 Months = $ $q2  \n 36 Months = $ $q3 \n 48 Months = $ $q4 \n
\n\n\n\n
Thank you again from VFSA-eRentals";

//Where the email is from

//$from = "[EMAIL PROTECTED]";

$headers .= "From: VFSA-eRentals <[EMAIL PROTECTED]>\n";
$headers .= "X-Sender: <[EMAIL PROTECTED]>\n";
$headers .= "X-Mailer: PHP\n"; // mailer
$headers .= "X-Priority: 1\n"; // Urgent message!
$headers .= "Return-Path: <[EMAIL PROTECTED]>\n";  // Return
path for errors

/* If you want to send html mail, uncomment the following line */
//$headers .= "Content-Type: text/html; charset=iso-8859-1\n"; // Mime type

$headers .= "cc:[EMAIL PROTECTED],[EMAIL PROTECTED]\n"; // CC to


//send the email

$mailsend = mail("$address", "$subject", "$body.", "$headers \nContent-Type:
text/plain; charset=iso-8859-1\nContent-Transfer-Encoding: 8bit" );
print ("$mailsend");

Reply via email to