Announcement

#1 2021-07-13 14:23:23

ynikolaides
Member
2019-10-15
6

E-mail not working

Hi to all,

We have configured a Piwigo Portal and we cannot setup e-mail sending.

We have followed all the well known configurations using local editor :

$conf['smtp_host'] = 'xxx.yyy.zzz.yyy:25';
$conf['smtp_user'] = 'mymail@mydomain.com';
$conf['smtp_password'] = xxxxxxxx';
$conf['mail_sender_email'] = 'mymail@mydomain.com';
$conf['mail_allow_html'] = true;
$conf['smtp_secure'] = null;

Warning: stream_socket_enable_crypto(): Peer certificate CN=`*.ukdns.biz' did not match expected CN=`xxx.yyy.zzz.yyy' in C:\xampp\htdocs\piwigo\include\phpmailer\class.smtp.php on line 368

We would be grateful for any assistance

Offline

 

#2 2021-07-13 20:36:03

erAck
Only trying to help
2015-09-06
2035

Re: E-mail not working

As the message says: the certificate Common Name (CN) *.ukdns.biz of the host it talked to does not match the expected xxx.yyy.zzz.yyy you provided.

If *.ukdns.biz would be correct and you specified an IP as xxx.yyy.zzz.yyy try to give a host name instead that matches *.ukdns.biz

With $conf['smtp_secure'] = null; STARTTLS is used if the server offers it, for which the certificate MUST be valid.

If you want to force a specific encrypted connection type then set

$conf['smtp_secure'] = 'tls';

or

$conf['smtp_secure'] = 'ssl';

(whatever the SMTP server expects/supports).


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

Offline

 

Board footer

Powered by FluxBB

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