M
mig39

  • Nov 24, 2016
  • Joined Feb 1, 2014
  • 0 best answers
  • In class.ticket.php, at the end of the function setStatus, I added some lines of php that send out an e-mail.Here's a starting point for how to send e-mail:  http://php.net/manual/en/function.mail.phpThere's probably an easy way to do it with the built-in OSTicket mail function as well, but for our internal needs, the php mail function was more than good enough.

  • Ok, I think I've found it, and it suits our needs well.In class.ticket.php, the function is setStatus.  I've put a few lines of code in there to send the appropriate e-mail, and it's working just fine.Thanks.

  • Thanks for your reply, ntozier.  We already do this, and it works great.What I want to add is part of our particular workflow -- if a status is changed, a unique e-mail address will receive an e-mail notice.  This e-mail address isn't part of the ticket or the system.  In the past, I just added a few lines of code to generate this e-mail to class.ticket.php, in the close() function.But I can't seem to find where this takes place in v1.10.  If someone can point me in the right direction, I can put in my couple of lines of code to generate the e-mail.

  • I'd like to send an e-mail when a ticket is closed (or its status changed).Can someone point out where in the code this occurs?  I see previous threads that accomplish the same thing on previous versions, but on v1.10, obviously the code is in different locations.

  • Hi there,I'm looking to have our installation of OSTicket send an e-mail when a ticket status is changed (i.e.: when it's resolved, or closed, or another custom status).  Can someone point me in the right direction?  Where in the code is this status set?  Can I just write a few lines of php in there to send an e-mail?I'm using v1.10.  Thanks

  • Hi ntozier,Thanks for the pointer.  You were right!  Running php -m showed that imap was not installed for the CLI version of PHP, while phpinfo() showed that it was installed for the Apache version.For anyone finding this thread in the future, in my case (Ubuntu 14.04.1), the file I had to edit was /etc/php5/cli/php.ini.  I just addedextension=imap.so to the end of it, and all is working now.Thanks for you help, it is appreciated!

  • hi there,I'm getting an error "osTicket requires PHP IMAP extension enabled for IMAP/POP3 email fetch to work!" whenever the cronjob is run.  I'm using a gmail account for the help desk address.  I've tried both IMAP & POP3 to retrieve.Attached is a screenshot of my admin / information page.  It does look like php-imap is installed and active.  IMAP shows up just fine in a phpinfo() page as well.  I've searched through previous discussions with the same error, and they seem to indicate that the IMAP extension isn't installed for php. Anyone have any ideas? Edit:  Doesn't seem to show the attachment, so here it is:  http://i.imgur.com/HOGln8Z.png

    Screen Shot 2014-08-21 at 1.36.33 PM.png

  • Yup, that's exactly it.Boss tells me he wants the department on the dropdown list, I do it :-)  Users sometimes select the wrong department, but we can live with that -- we just transfer it.Anyway, I accomplished it by editing the php files.Thanks!

  • Hi there,Just upgraded to 1.8.0.2.Is there a way to have the department available for selection by the user when he or she is submitting a ticket using the web form?   Thanks.