Add cc and bcc using c5 mail helper
did you ever figure this out? I just had a need to implement bcc. wondering what you ended up doing on this.
I've done this as well. Turns out C5 uses the Zend_Mail class which has an addBcc() method. However, the C5 mail helper does not implement a Bcc method, so I simply extended the C5 mail helper class as follows...
(You could of course add a regular Cc method as well if you need that.)
I'm assuming you know how to extend a helper, but for those following this thread who don't, proceed as follows...
1) Create a file called mail.php in the root /helpers directory.
2) Define a class called "SiteMailHelper" (as shown in the code above) and implement that class.
It's important to note that this doesn't simply override the built-in /concrete/helpers/mail.php file, but rather EXTENDS the "MailHelper" class. Note that you must prefix the original class name with "Site".
(EDIT: It would probably be good just to add Cc and Bcc functionality to the built-in mail helper and submit the change via GitHub.)
I tried to trace what's going on and the addBcc() seems to work and even var_dumping the whole mail-object shows that the repients are in their respective "categories" (to and bcc). However, after the sendmail() the end result is what I described above...
Any ideas what's going on?
Sorry, I wish I could be of more help.