This is what I have as far as BCC, however, I expect it will not be what a number of people are wanting as it is set statically.
include/class.email.php
Find:
$subject=stripslashes(preg_replace("/(\r\n|\r|\n)/s",'', trim($subject)));
$body = stripslashes(preg_replace("/(\r\n|\r)/s", "\n", trim($message)));
and above that add:
$Bcc="email_address@example.com";
This is working for me because I have a mailing list setup that has anyone that receives osTickets in email form will then also get this BCC email.
NOTE: The solution employed below was for an RC of OSTicket. In Release 1.6, the lines searched for are, in fact in /include/class.email.php. - RSL (edit on 24 March 2010)
Hi,
I searched for the lines
$subject=stripslashes(preg_replace("/(\r\n|\r|\n)/s",'', trim($subject)));
$body = stripslashes(preg_replace("/(\r\n|\r)/s", "\n", trim($message)));
in /include/class.email.php but they were not there. I believe you meant in class.misc.php.
In any case, I wound up doing this a bit differently as adding the $bcc= line didn't do the trick. I simply added a line below
$to=preg_replace("/(\r\n|\r|\n)/s",'', trim($to));
like this:
$to.=",my_tech_support_email@example.com";
While this solution does expose the address on the 'to' line of the mail, that's ok with me for this implementation as it's the alias for our support group.
Thanks for the pointers...hope this helps someone out there too.
-Ray