Sometimes, your email may be received successfully, except for the emails you declare as CC. A possible cause for this issue is that you are adding the emails to the message correctly but not adding the CC to the envelope.
In such cases, when sending the email, try using the
ccaddr with the
For instance, consider the second parameter of the sendmail() method.
According to the documentation (link below), the message envelope gets created using the first two parameters (
toaddr). So, adding the
ccaddr to it will solve this issue and successfully send the email to CC recipients.
Read more here.
View all errors