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
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).
Offline