Can some one please have a look through this and give me a step in the right
direction asto why my mail script won't cc or bcc. I've checked with the
mail server admin and he said as far as the email server is concerned it
supports multiple email address.. it will only send to the $address but not
any other address..
/* recipients */
$address .= "$email" ;//note the comma
// Subject
$subject = "ABC Calculation Results";
//Body of email
$body = "Thank you $user,\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 $ $q2 Over 24 Months \n $ $q3 Over 36 Months \n
$ $q4 Over 48 Months\n
\n\n\n\n
Thank you again from VFSA-eRentals</font>";
//Where the email is from
$headers .= "From: ABC <[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]\n"; // CC to
$headers .= "bcc:[EMAIL PROTECTED]\n"; // BCCs to
//send the email
$mailsend = mail("$address", "$subject", "$body.", "$headers \nContent-Type:
text/plain; charset=iso-8859-1\nContent-Transfer-Encoding: 8bit" );
print ("$mailsend");
?>
Thanks
Peter