Forum Replies Created

Viewing 1 replies (of 1 total)
  • Momotaro_es

    (@momotaro_es)

    You can try this, I fixed the same problen with this code. Copy and paste in functions.php:

    add_action(‘phpmailer_init’,’send_smtp_email’);
    function send_smtp_email( $phpmailer )
    {
    // Define que estamos enviando por SMTP
    $phpmailer->isSMTP();

    // La dirección del HOST del servidor de correo SMTP p.e. smtp.midominio.com
    $phpmailer->Host = “your server smtp address”;

    // Uso autenticación por SMTP (true|false)
    $phpmailer->SMTPAuth = true;

    // Puerto SMTP – Suele ser el 25, 465 o 587
    $phpmailer->Port = “587”;

    // Usuario de la cuenta de correo
    $phpmailer->Username = “user name”;

    // Contrase?a para la autenticación SMTP
    $phpmailer->Password = “password”;

    // El tipo de encriptación que usamos al conectar – ssl (deprecated) o tls
    $phpmailer->SMTPSecure = “tls”;

    $phpmailer->From = “[email protected]”;
    $phpmailer->FromName = “Tu nombre”;
    }

Viewing 1 replies (of 1 total)