PHP Email: To, CC -


I have PHP scripts which automatically sends an email to me, it is good to do this work, but when I add a CC I try, so it does not work. Below is my code for email:
  $ email_to = "$ theData2"; // Who is the email, $ headers = "From:". $ Email_from; $ Fine = @ email ($ email_to, $ email_sbank, $ email_message, $ header);   

I have made the following efforts to get the CC to work, but I have no luck.

  $ email_cc = "example@info.com"; $ Headers = "Cc:". $ Email_cc;   

And also tried it:

  $ headers = "Cc: sombodyelse@noplace.com";   

I can not get it for both emails: to & amp; CC

Any help would be greatly appreciated. Thanks!

You forgot your new line.

  $ headers = "\ R \ nCc:". $ Email_cc;    

Comments