Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you include multiple Carbon Copies with PHPMailer

Status
Not open for further replies.

tbrowne

IS-IT--Management
Joined
Dec 27, 2001
Messages
51
Location
US
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
 
Thank you! That's what I needed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top