|
#1
|
|||
|
|||
|
i need ur help cuz i dont know about php... i want receive an email when someone closes a ticket... it would be perfect if the email contains all the historic with the client... thank you very much <3 |
|
#2
|
|||
|
|||
|
It's do-able. Someone actually already asked for this:
http://osticket.com/forums/showthread.php?t=1810 I'll see what I can whip up! Bug me if I don't get to it soon. |
|
#3
|
|||
|
|||
|
Quote:
thank you very much... its urgent...pls pls ty |
|
#4
|
|||
|
|||
|
Like I said, don't have much time recently, but this should do the basic part of what you are looking for:
In /include/class.ticket.php MODIFY: PHP Code:
PHP Code:
|
|
#5
|
|||
|
|||
|
i understand and im sorry...
it doesnt work >.< ty anyway |
|
#6
|
|||
|
|||
|
I have not tried the mod but looking at the code, the return statement should be moved to the bottom. It will never execute the email code.
Code:
//Close the ticket
function close(){
$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());
$subj= "Ticket #" .$this->getId(). " has been closed.";
$body= "This is a notification that Ticket #" .$this->getId(). " has been closed.";
$email->send($ticket->getEmail(),$subj,$body);
return (db_query($sql) && db_affected_rows())?true:false;
}
|
|
#7
|
|||
|
|||
|
does this mod works?
|
|
#8
|
|||
|
|||
|
Here's my version of this:
PHP Code:
Enjoy my updates! --DJBooya |
|
#9
|
|||
|
|||
|
Quote:
hi guys.. did it work with you? not with me... thank you |
|
#10
|
|||
|
|||
|
Works Perfectly for me!
I would like to know how to make the notification goto the department admin as well though. I can't seem to add another to address to the function. Can anyone help? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|