Hi there,
About the file class.mailer.php
Sometime the method mail::factory('smtp' is not working and the only method who works is
mail::factory('mail'...
The Class file is trying mail::factory('smtp' and then try mail::factory('mail'. if the first one is fail.
The problem is:
When a fail occurs with :factory('smtp' the answer waited from the SMTP server is very delayed.
The class: "class.mailer.php" is called when we POST a new ticket with the API (/api/http.php/tickets.json'))
The answer to the function curl_exec take a long time (due to the mail::factory fail) and sometime we got some error curl_getinfo due to the delay.
An enhancement for future Osticket releases:
Is it possible to add a menu into (/scp/emails.php?id=x) for selecting the right method (SMTP_smtp or SMTP_mail)?
I am using OsTicket v1.10.4
Thank you by advance
Actually I solved the problem by commenting some lines into class.mailer.php