What is the difference between AddAddress() and AddCC() functions in PHPMailer?

The AddAddress() function in PHPMailer is used to add a recipient's email address to the email being sent, while the AddCC() function is used to add a recipient's email address as a carbon copy (CC) recipient. To send an email to multiple recipients, you can use AddAddress() for the main recipient and then use AddCC() to add additional recipients who will receive a copy of the email.

// Example code snippet to add multiple recipients using AddAddress() and AddCC() functions in PHPMailer

// Add main recipient
$mail->AddAddress('recipient1@example.com', 'Recipient Name');

// Add CC recipient
$mail->AddCC('ccrecipient1@example.com', 'CC Recipient Name');