Proyectos de Subversion Moodle

Rev

Rev 1359 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1359 Rev 1360
Línea 5969... Línea 5969...
5969
        $context['body'] = $messagehtml;
5969
        $context['body'] = $messagehtml;
5970
        $messagehtml = $renderer->render_from_template('core/email_html', $context);
5970
        $messagehtml = $renderer->render_from_template('core/email_html', $context);
5971
    }
5971
    }
Línea 5972... Línea 5972...
5972
 
5972
 
5973
    $context['body'] = html_to_text(nl2br($messagetext));
5973
    $context['body'] = html_to_text(nl2br($messagetext));
5974
    $mail->Subject = $renderer->render_from_template('core/email_subject', $context);
5974
    //$mail->Subject = $renderer->render_from_template('core/email_subject', $context);
5975
    $mail->FromName = $renderer->render_from_template('core/email_fromname', $context);
5975
    //$mail->FromName = $renderer->render_from_template('core/email_fromname', $context);
Línea 5976... Línea 5976...
5976
    $messagetext = $renderer->render_from_template('core/email_text', $context);
5976
    $messagetext = $renderer->render_from_template('core/email_text', $context);
5977
 
5977
 
5978
    // Autogenerate a MessageID if it's missing.
5978
    // Autogenerate a MessageID if it's missing.
Línea 5996... Línea 5996...
5996
            <div style=\"text-align:center; margin-top:40px;\">
5996
            <div style=\"text-align:center; margin-top:40px;\">
5997
                <p style=\"margin: 0; font-size: 16px;\">Construyendo Futuro - Desarrollando Líderes y Personas</p>
5997
                <p style=\"margin: 0; font-size: 16px;\">Construyendo Futuro - Desarrollando Líderes y Personas</p>
5998
            </div>";
5998
            </div>";
Línea 5999... Línea 5999...
5999
 
5999
 
6000
        // Unir todo: Header + Contenido original + Footer
6000
        // Unir todo: Header + Contenido original + Footer
Línea 6001... Línea 6001...
6001
        $full_html_message = $header_html . $messagehtml . $footer_html;
6001
        $full_html_message = $messagehtml;
6002
 
6002
 
6003
        $mail->isHTML(true);
6003
        $mail->isHTML(true);
6004
        $mail->Encoding = 'quoted-printable';
6004
        $mail->Encoding = 'quoted-printable';
6005
        $mail->Body = $full_html_message; // Ahora enviamos Header + Contenido + Footer
6005
        $mail->Body = $full_html_message; // Ahora enviamos Header + Contenido + Footer
6006
        $mail->AltBody = strip_tags($header_html) . "\n" . $messagetext . "\n" . strip_tags($footer_html); // Versión texto plano
6006
        $mail->AltBody = $messagetext; // Versión texto plano
6007
    } else {
6007
    } else {
6008
        $mail->IsHTML(false);
6008
        $mail->IsHTML(false);