- Edited
Hi there good people
these are my system properties:
Osticket version 1.15.8
Apache: 12.4.29 (Ubuntu)
Mysql : 7.2.24
Ubuntu: 18.04.13
At Email/diagnostic, while trying testing the system,it delivers this over-talked error: Unable to email via php mail function:mail() returned failure
I've looked it up for the solution on other threads, and like it s been guided to do, i'v changed the Default MTA options back and forth but it hasn't worked out for me.
My #tail -f /var/logs/apache2/error.log delivers:
sh: 1: /usr/sbin/sendmail: not found
sh: 1: /usr/sbin/sendmail: not found
sh: 1: /usr/sbin/sendmail: not found
sh: 1: /usr/sbin/sendmail: not found
sh: 1: /usr/sbin/sendmail: not found
sh: 1: /usr/sbin/sendmail: not found
sh: 1: /usr/sbin/sendmail: not found
sh: 1: /usr/sbin/sendmail: not found
sh: 1: /usr/sbin/sendmail: not found
sh: 1: /usr/sbin/sendmail: not found
and tail -f /var/logs/apache2/osticket_error.log.1 is saying that:
[Tue Sep 06 19:27:06.609944 2022] [php7:warn] [pid 16149] [client 192.168.x.x:5394] PHP Warning: session_start(): Failed to read session data: user (path: /var/lib/php/sessions) in /var/www/html/osticket/upload/include/class.ostsession.php on line 87, referer: http://172.x0.x.x0/scp/login.php
[Tue Sep 06 19:36:22.817604 2022] [php7:error] [pid 1490] [client 192.168.x.x:5471] PHP Fatal error: Uncaught Error: Call to undefined function _S() in /var/www/html/osticket/upload/include/class.mailer.php:612\nStack trace:\n#0 /var/www/html/osticket/upload/include/class.mailer.php(632): Mailer->send(Array, 'osTicket Fatal ...', 'Unable to conne...', Array)\n#1 /var/www/html/osticket/upload/bootstrap.php(316): Mailer::sendmail('leonardo@cricket...', 'osTicket Fatal ...', 'Unable to conne...', '"osTicket Alert...')\n#2 /var/www/html/osticket/upload/bootstrap.php(201): Bootstrap::croak('Unable to conne...')\n#3 /var/www/html/osticket/upload/main.inc.php(28): Bootstrap::connect()\n#4 /var/www/html/osticket/upload/scp/login.php(16): require_once('/var/www/html/o...')\n#5 {main}\n thrown in /var/www/html/osticket/upload/include/class.mailer.php on line 612, referer: http://172.x0.x.x0/scp/login.php
[Tue Sep 06 19:36:32.730458 2022] [php7:error] [pid 1489] [client 192.168.x.x:5479] PHP Fatal error: Uncaught Error: Call to undefined function _S() in /var/www/html/osticket/upload/include/class.mailer.php:612\nStack trace:\n#0 /var/www/html/osticket/upload/include/class.mailer.php(632): Mailer->send(Array, 'osTicket Fatal ...', 'Unable to conne...', Array)\n#1 /var/www/html/osticket/upload/bootstrap.php(316): Mailer::sendmail('leonardo@cricket...', 'osTicket Fatal ...', 'Unable to conne...', '"osTicket Alert...')\n#2 /var/www/html/osticket/upload/bootstrap.php(201): Bootstrap::croak('Unable to conne...')\n#3 /var/www/html/osticket/upload/main.inc.php(28): Bootstrap::connect()\n#4 /var/www/html/osticket/upload/scp/staff.inc.php(20): require_once('/var/www/html/o...')\n#5 /var/www/html/osticket/upload/scp/tickets.php(17): require('/var/www/html/o...')\n#6 /var/www/html/osticket/upload/scp/index.php(17): require('/var/www/html/o...')\n#7 {main}\n thrown in /var/www/html/osticket/upload/include/class.mailer.php on line 612
Thanks