i search for sometime how implement CC in osTicket 1.7 st, i find a way,i edit \include\class.ticket.php ,\include\class.email.php , \include\class.mailer.php and \include\staff\ticket-view.inc.php
sorry for my english
in \include\class.email.php
// start cc multiple mails add ,$cc=null
function send($to, $subject, $message, $attachments=null, $options=null,$cc=null) {
//end cc multiple mails
// start cc multiple mails add , $cc
return $mailer->send($to, $subject, $message, $options, $cc);
//end cc multiple mails
in \include\class.ticket.php
// start cc multiple mails add ,$cc=''
$email->send($this->getEmail(), $msg, $msg, $attachments,$cc='');
//end cc multiple mails
in
\include\class.mailer.php
// start cc multiple mails add, $cc=null
function send($to, $subject, $message, $options=null, $cc=null)
// end cc multiple mails
find
$to = preg_replace("/(\r\n|\r|\n)/s",'', trim($to));
an after insert
// start cc multiple mails
$cc = $_POST;
//end cc multiple mails
find $headers = array (
'From' => $this->getFromAddress(),
'To' => $to,
'Subject' => $subject,
'Date'=> date('D, d M Y H O'),
'Message-ID' => $messageId,
'X-Mailer' =>'osTicket Mailer'
);
and remplace for
// start cc multiple mails
$headers = array ();
$headers = $this->getFromAddress();
$headers = $to;
$headers = $subject;
if ($cc != null) {
$headers = $cc;
}
$headers = date('D, d M Y H O');
$headers = $messageId;
$headers = 'osTicket Mailer';
//end cc multiple mails
in
\include\staff\ticket-view.inc.php
find
<td width="765">
<?php
$to = $ticket->getEmail();
if(($name=$ticket->getName()) && !strpos($name,'@'))
$to =sprintf('%s <em><%s></em>', $name, $ticket->getEmail());
echo $to;
?>
<label><input type='checkbox' value='1' name="emailreply" id="remailreply"
<?php echo ((!$info && !$errors) || isset($info))?'checked="checked"':''; ?>> Email Reply</label>
</td>
</tr>
and after insert
!-- start cc multiple mails -->
<tr>
<td>CC:</td>
<td><input size=80 type="text" name="cc_to" >
</td>
</tr>
end cc multiple mails