How to use CC and BCC in Send emil

Recommend this page to a friend!

      SMTP E-mail sending class  >  All threads  >  How to use CC and BCC in Send emil  >  (Un) Subscribe thread alerts  
Subject:How to use CC and BCC in Send emil
Summary:CC and BCC
Messages:4
Author:Venkat Varatharajan
Date:2016-09-29 10:34:48
 

  1. How to use CC and BCC in Send emil   Reply   Report abuse  
Picture of Venkat Varatharajan Venkat Varatharajan - 2016-09-29 10:34:48
Hi Everyone,

I'm use this mail class, I want send email with CC and BCC, but i can't unable send CC and BCC. Plz explain this functionality.

Thanks everyone.

  2. Re: How to use CC and BCC in Send emil   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2016-09-30 06:24:05 - In reply to message 1 from Venkat Varatharajan
For all recipients that are in Cc and Bcc you need to add the addresses in the $to array.

It is better that you use this other package in conjunction with this:

phpclasses.org/mimemessage

  3. Re: How to use CC and BCC in Send emil   Reply   Report abuse  
Picture of Venkat Varatharajan Venkat Varatharajan - 2016-09-30 07:31:16 - In reply to message 2 from Manuel Lemos
Thanks for your response,

Yes, your are correct. But I don't want to send with "$to" array. I will check with your another suggestion and get back to you.

Thanks once again.

  4. Re: How to use CC and BCC in Send emil   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2016-09-30 19:15:21 - In reply to message 3 from Venkat Varatharajan
Yes, the other class will extract the addresses from To, Cc and Bcc headers and will call this class to send messages to all recipients via SMTP. So you need both classes.

 
For more information send a message to info at phpclasses dot org.