What is the recommended method for sending emails with PHP, especially when including a Cc recipient?

When sending emails with PHP, especially when including a Cc recipient, it is recommended to use the PHP `mail()` function along with the headers parameter to specify additional recipients like Cc. You can use the `Cc` header to include additional recipients in the email.

$to = 'recipient@example.com';
$subject = 'Test Email';
$message = 'This is a test email';
$headers = 'From: sender@example.com' . "\r\n";
$headers .= 'Cc: cc_recipient@example.com' . "\r\n";

mail($to, $subject, $message, $headers);