Send Email Using SafSendMailV2

<?
function SafSendMailV2($MYRECIPIENTE_EMAIL,$MYRECIPIENTE_NAME,$MYFROM_NAME,$MYFROM_EMAIL,$MYSUBJECT,$MYBODY,$MYHTML,$REMOTE_ADDR,$PHP_SELF
){
$MYRECIPIENTE_EMAIL = "$MYRECIPIENTE_EMAIL"
;
if (
$MYHTML==true
) {
$MYHEADERS = "From: $MYFROM_NAME <$MYFROM_EMAIL>\r\n"
;
$MYHEADERS .= "MIME-Version: 1.0\r\n"
;
$MYHEADERS .= "Content-Type: text/html; charset=windows-1256\r\n"
;
$MYHEADERS .= "Content-Transfer-Encoding: base64\r\n"
;
$MYHEADERS .= "From-IP: $REMOTE_ADDR\r\n"
;
$MYHEADERS .= "From-File: $PHP_SELF\r\n"
;
$MYHEADERS .= chunk_split(base64_encode("$MYBODY"
));
mail("$MYRECIPIENTE_EMAIL", "$MYSUBJECT", "", $MYHEADERS
);
}else{
$MYHEADERS = "From: $MYFROM_NAME <$MYFROM_EMAIL>\r\n"
;
$MYHEADERS .= "From-IP: $REMOTE_ADDR\r\n"
;
$MYHEADERS .= "From-File: $PHP_SELF"
;
mail("$MYRECIPIENTE_EMAIL", "$MYSUBJECT", "$MYBODY", $MYHEADERS
);
}
}
?>