Announcement

#1 2024-01-02 17:13:01

Dal
Member
2023-10-14
19

SMTP setup ?

Hi.
I'm trying to get the SMTP setup to work.
I have tried 2 providers (Gmail and domeneshop), but none works:

The setup looks like this:
$conf['smtp_host'] = 'smtp.domeneshop.no:465';
$conf['smtp_user'] = 'dal@domain.tld';
$conf['smtp_password'] = "eDGDZvz*jya4657gkfd";  // NOT THE REAL PASSWORD

// 'ssl' or 'tls'
$conf['smtp_secure'] = 'ssl';

The setup works fine from for example Thunderbird, but not here.
What can be wrong?
Is there a log I can look at somewhere in Piwigo?

Thanks

Offline

 

#2 2024-01-03 04:53:20

erAck
Only trying to help
2015-09-06
2128

Re: SMTP setup ?

You could temporarily change include/phpmailer/SMTP.php line 150 from
    public $Debugoutput = 'echo';
to

Code:

    public $Debugoutput = 'error_log';

to log to your php error log file (as configured per php.ini or locally). Also read the comments above that line.


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2024-01-03 10:18:56

Dal
Member
2023-10-14
19

Re: SMTP setup ?

Thanks. Figured it out.
The solution was to create an app password in Google and use that password instead of my personal password.

I don't know much about linux, and even less about PHP, so I struggled how to enable logging.
My Piwigo also runs as a docker container.

So for others that comes looking, this is how I did it:

I edited /etc/php82/php.ini:
error_log = /config/log/php/php_errors.log

and then /app/www/public/include/phpmailer/SMTP.php:
public $Debugoutput = 'error_log';

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact