phpmailerHow do I use PHPMailer to add a carbon copy recipient?
Using PHPMailer to add a carbon copy recipient is very simple. All you need to do is add a line of code to your existing PHPMailer script.
$mail->addCC('[email protected]');
This line of code will add a carbon copy recipient to your email.
The code above consists of two parts:
$mail->addCC('[email protected]');
- This is the command used to add a carbon copy recipient.[email protected]
- This is the email address of the carbon copy recipient.
No output is generated when this code is executed.
For more information, please see the PHPMailer documentation.
More of Phpmailer
- How can I configure PHPMailer to support Polish characters?
- How can I use PHPMailer in Yii 1?
- How can I configure PHPMailer to work with GoDaddy?
- How can I set up PHPMailer to use Zimbra SMTP?
- How can I use PHPMailer without SMTP secure?
- How do I determine which version of PHPMailer I'm using?
- How can I use PHPMailer to send emails with a Yahoo account?
- How do I use PHPMailer to attach a ZIP file?
- How can I send emails using PHPMailer without using SMTP?
- How do I update PHPMailer?
See more codes...