To do so, I have added the following parameter on config_inc.php
Code: Select all
$g_email_is_html = ON; # or OFF for plain-text; default is OFFCode: Select all
/**
* clean up LF to CRLF
*
* @param string $p_string
* @return null
*/
function make_lf_crlf( $p_string ) {
$t_string = str_replace( "\n", "\r\n", $p_string );
$t_string = str_replace( "\r\r\n", "\r\n", $t_string );
if ( ON == config_get( 'email_is_html' ) ) {
$t_string = str_replace( "\r\n", "<br>", $t_string );
}
return $t_string;
}Code: Select all
$mail->IsHTML( config_get( 'email_is_html' ) );