Problem with sending mails (Phpmail or SMTP)

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
daddish_16
Posts: 1
Joined: Thu Nov 09, 2023 4:01 pm

Problem with sending mails (Phpmail or SMTP)

Post 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,
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Re: Problem with sending mails (Phpmail or SMTP)

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply