Anyone know how to send carbon copies to more than one person with PHPMailer. It's probably easy once you've done it, but I haven't figured it out yet.
My code is as follows:
$mail = new PHPMailer;
// Add the necessary stuff
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "intranet"; // SMTP server
$mail->From = "from@ci.springfield.oh.us";
$mail->FromName = "Fire Administrator";
$mail->AddAddress("fireadmin@ci.springfield.oh.us");
$mail->AddCC ("ksprinkle@ci.springfield.oh.us") ;
$mail->AddAttachment("../output/scbaRepairs.csv");
$mail->Subject = "SCBA Repair Request";
$mail->Body = "SCBA request is attached.";
$mail->WordWrap = 50;
I need to carbon five more persons when the mail is sent.
Thanks
My code is as follows:
$mail = new PHPMailer;
// Add the necessary stuff
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "intranet"; // SMTP server
$mail->From = "from@ci.springfield.oh.us";
$mail->FromName = "Fire Administrator";
$mail->AddAddress("fireadmin@ci.springfield.oh.us");
$mail->AddCC ("ksprinkle@ci.springfield.oh.us") ;
$mail->AddAttachment("../output/scbaRepairs.csv");
$mail->Subject = "SCBA Repair Request";
$mail->Body = "SCBA request is attached.";
$mail->WordWrap = 50;
I need to carbon five more persons when the mail is sent.
Thanks