PDA

View Full Version : Copy carbon when posting a reply


Lobearing
04-04-2008, 08:58 AM
Hi everybody !!
Great job on osTicket ! really powerful!

I have a question though: I've added a field "Email Cc" when creating a ticket, and I store the address in the database (as 'copyemail').
I display this address in the ticket view, but I can't manage to post the reply to both email and email Cc.

Does anybody know where I can change that? I just want the reply to be posted to the requestor and to the email cc if applicable.

Thanks for your help!

jpowers40828
05-20-2008, 02:58 PM
i added this code on line 649 in class.ticket.php

$headers .= 'Cc: email@email.com' . "\r\n";

right before the line that reads

Misc::sendmail($this->getEmail(),$subj,$body,$from,$fromName,$headers);

op3r
07-04-2008, 05:22 AM
will that also sends an email to those are on the CC:?

jpowers40828
07-09-2008, 05:20 AM
you would need to perform a sql query in order to get the cc address from the database, storing it in a variable. After that, replace the email@email.com with the variable and it should.