Could some one please take a look at this and offer any suggestions as to
why i can't 1 send multiple "to" emails and also why i can't send to the
addesses in the "CC" part (i can't send to either single or multiple in CC)
This has got me baffled as to why i can't...
Thanks in advance
Peter
<?
session_start();
if ($REQUEST_METHOD=='POST')
{
header('Expires: ' . gmdate("D, d M Y H:i:s", time()+1000) . ' GMT');
header('Cache-Control: Private');
}
session_register('user');
session_register('pass');
session_register('email');
session_register('company');
session_register('real_name');
$session = session_id();
$userid = '$user'; /* recipients */
$address .= $email ;
$date = date("D M d, Y ");
// Subject
$subject = "abc 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.";
//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],[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");
echo "<font face=Helvetica, sans-serif size=3 color=#00499C>Email
Sent!</font>";
include "incend.s";
?>