Allow WordPress to use a relay smtp with self signed cert

    271     /**
    272      * Options array passed to stream_context_create when connecting via SMTP.
    273      * @var array
    274      */
    275     public $SMTPOptions = array(
    276          'ssl' => array(
    277         'verify_peer' => false,
    278         'verify_peer_name' => false,
    279         'allow_self_signed' => true
    280                     )
    281         );

Around line 271 on wp-includes/class-phpmailer.php ,or better search for SMTPOptions

Related with same conf for Moodle as php now disables it.

Also phpmailer is a very popular class for php apps, in the documentation page on the troubleshot category you can find my case of use https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting#updating-ca-certificates

Esta entrada ha sido publicada en Debraye, General, planetalinux, sysadmin, Trabajo y etiquetada como , , , , . Guarda el enlace permanente.

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Este sitio usa Akismet para reducir el spam. Aprende cómo se procesan los datos de tus comentarios.