Good day! KevinTheJedi we found this in the error log while sending email. We should have checked logs inside scp first
[09-Jan-2023 05:51:52 UTC] PHP Fatal error: Uncaught Error: Call to undefined function Laminas\Mail\Header\iconv_mime_encode() in /home/user/public_html/support/include/laminas-mail/src/Header/HeaderWrap.php:157
Stack trace:
#0 /home/user/public_html/support/include/laminas-mail/src/Header/Subject.php(103): Laminas\Mail\Header\HeaderWrap::canBeEncoded('osTicket test e...')
#1 /home/user/public_html/support/include/laminas-mail/src/Message.php(344): Laminas\Mail\Header\Subject->setSubject('osTicket test e...')
#2 /home/user/public_html/support/include/class.mailer.php(349): Laminas\Mail\Message->setSubject('osTicket test e...')
#3 /home/user/public_html/support/include/class.email.php(235): osTicket\Mail\Mailer->send('hisham@me-mits....', 'osTicket test e...', '<p>asasdasas</p...', Array, Array)
#4 /home/user/public_html/support/scp/emailtest.php(38): Email->send('hisham@me-mits....', 'osTicket test e...', '<p>asasdasas</p...', NULL, Array)
#5 {main}
thrown in /home/user/public_html/support/include/laminas-mail/src/Header/HeaderWrap.php on line 157
We downgraded PHP from 8.1 to 8.0 as suggested by some other thread but still the same error.
TIA.