Web Hosting Talk







View Full Version : Problem with Ticketsmith


md2001
08-19-2001, 12:45 PM
Recently I installed Ticketsmith. It runs great, except for one thing.

When I post a followup as a staff member, the process when the mail gets sent (when I click on the button "Post Followup") takes really a lot of time to complete. The mail is sent and everything is OK, but I have to wait 1-2 minutes for the server response.
This is annoying and it takes a lot of time when there's a large number of tickets to work on. Is this normal?

Any ideas what could be the problem? Otherwise I really like it and it's a nice piece of software.

Thanks

incanus
08-20-2001, 04:51 PM
Hi,

This has got to be a config issue with your mail server -- sounds like PHP's mail() is taking a while... DNS maybe? Basically, PHP is limited by the SMTP transaction, but it's usually queued and sent to the background, so I'm not sure why you'd be experiencing this.

-Justin

md2001
08-20-2001, 07:30 PM
Hi

Thank you for the reply.

Well I couldn't solve the poblem and I decided to take a closer look at the code. In fact I really don't know much about PHP, but I experimented a little bit. Can you please tell me what the "@" sign before the "mail" function in followup.php means?

/* mail the followup */
@mail($recipient, $subject, $followup, $headers) || fatal_error("Unable to mail followup. Quit without recording followup to database.");

Because if I remove it, the problem goes away. But I don't know if I can remove it without screwing something else up. Just experimenting...

thanks

incanus
08-20-2001, 10:52 PM
That seems rather odd. All the '@' does is suppress any error messages that might come about in the function. That works for any function.

md2001
08-21-2001, 06:32 AM
It seems strange to me too, but I tested it again and if there's the "@" sign, the script is causing problem mentioned above. If I remove it, it works perfectly fine. I guess I'll just use it without "@".

Thank you for your help.