Class class.ticket.php has a line:$ticket->onNewTicket($message, $autorespond, $alertstaff);It does the sending emails thing. I want to add more emails to be sent (using fields as email adresses, i figured it out). But the problem is that when i hook to signal fired here:Signal:('model.created', $ticket);Using the Slack plugin i've found here (https://github.com/thammanna/osticket-slack/blob/master/slack/slack.php):require_once(INCLUDE_DIR.'class.signal.php');require_once(INCLUDE_DIR.'class.plugin.php');require_once('config.php');class SlackPlugin extends Plugin { var $config_class = "SlackPluginConfig"; function bootstrap() { Signal:('model.created', array($this, 'onTicketCreated'), 'Ticket'); } function onTicketCreated($ticket){ try { global $ost; I can not grab e-mail templates. Thammanna, creator of slack plugin, writes content to be published on 3th party from scratch using functions like this:$ticket->getSubject()What i want to do is to use build in template to send email to additional users. In class.ticket.php onNewTicket looks like this: if(!$autorespond && !$alertstaff) return true; //No alerts to send. /* ------ SEND OUT NEW TICKET AUTORESP && ALERTS ----------*/ $this->reload(); //get the new goodies. if(!$cfg || !($dept=$this->getDept()) || !($tpl = $dept->getTemplate()) || !($email=$dept->getAutoRespEmail())) { return false; //bail out...missing stuff. } $options = array( 'inreplyto'=>$message->getEmailMessageId(), 'references'=>$message->getEmailReferences(), 'thread'=>$message); //Send auto response - if enabled. if($autorespond && $cfg->autoRespONNewTicket() && $dept->autoRespONNewTicket() && ($msg=$tpl->getAutoRespMsgTemplate())) { $msg = $this->replaceVars($msg->asArray(), array('message' => $message, 'recipient' => $this->getOwner(), 'signature' => ($dept && $dept->isPublic())?$dept->getSignature():'') ); $email->sendAutoReply($this->getOwner(), $msg, $msg, null, $options); }But if i copy it to my plugin signal handle it does not work. autorespond is false. $this->reload(); crashes and if i ommit those parts from the start than:$this->getDept() is false, and i can not get template.So... my question is: how to send additional emails using system templates and settings in ticket create signal ?Tom