Hi All,
I added closed ticket plugin on my Osticket system, class.ticket.php file.
I want to change "SERVER_NAME", but don't know how to change.
Can someone tell me?
THanks!
// add closed ticket notification
$sql= 'UPDATE '.TICKET_TABLE.' SET status='.db_input('closed').',staff_id=0,isoverdue=0,duedate=NULL,updated=NOW(),closed=NOW() '.
' WHERE ticket_id='.db_input($this->getId());
$dept = new Dept($this->getDeptId());
$email = new Email($this->getEmail());
if ($dept->autoRespONNewTicket()){
print "Email Send";
$subj="Support Ticket #" .$this->getExtId(). " has been closed.";
$body="Your ticket #" .$this->getExtId(). " has been closed, You can see request information here:
http://" . $_SERVER . "/view.php?e=" . $this->getEmail() . "&t=" . $this->getExtId() . ".";
$dept->getEmail()->send($this->getEmail(),$subj,$body);
}
return (db_query($sql) && db_affected_rows())?ture;
}
// add closed ticket notification end