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
You could temporarily change include/phpmailer/SMTP.php line 150 from
public $Debugoutput = 'echo';
to
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.
Offline
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