Page 1 of 1

Problem with sending mails (Phpmail or SMTP)

Posted: Thu Nov 09, 2023 4:08 pm
by daddish_16
Version of script: 3.4.3
Hosting company: Self hosted on ubuntu server

What terms did you try when SEARCHING for a solution: phpmail, smtp

Write your message below:

I have tested my smtp server from linux cli and see that authentication is successfull but with Hesk GUI smtp test is not success it says and freeze "Testing connection, this can take a while....etc".

Also, I have that error messages in my apache error logs.

[Thu Nov 09 18:57:41.457571 2023] [php7:error] [pid 8537] [client xxxxxxxxx] PHP Fatal error: Uncaught Error: Class 'PHPMailer\\PHPMailer\\SMTP' not found in /var/www/html/helpdesk/inc/setup_functions.inc.php:475\nStack trace:\n#0 /var/www/html/helpdesk/admin/test_connection.php(77): hesk_testSMTP()\n#1 {main}\n thrown in /var/www/html/helpdesk/inc/setup_functions.inc.php on line 475, referer: http://xxxxxxx/helpdesk/admin/admin_settings_email.php

Could you please help me ?

Regards,

Re: Problem with sending mails (Phpmail or SMTP)

Posted: Fri Nov 10, 2023 4:07 pm
by Klemen
Looks like missing PHPmailer files? What is the contents of your \vendor\phpmailer\phpmailer\src folder?

Are you able to connect to an external SMTP server, such as Gmail? https://www.hesk.com/knowledgebase/?article=72