I'm trying to send html email using sendmail because email() doesnt work but i can't.
Pleasem could some one help me.
I can send html mail with this but my server doesn't seem to accept it. :-(
function html_mail($recipient,$subject,$htmlmessage,$from) {
$boundary = uniqid("");
$headers = "From: $from\nContent-type: multipart/mixed; boundary=\"$boundary\"\n\nThis is a MIME-multipart message\n\n";
$message = "\n--$boundary\nContent-type: text/html;\nContent-transfer-encoding: 7bit\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n$htmlmessage\n--$boundary--";
mail($recipient,$subject,$message,$headers);
}