function SendEmail($toEmail, $fromEmail, $subject, $content, $from){ $subject = "=?utf-8?b?" . base64_encode($subject) . "?="; $headers = "MIME-Version: 1.0rn"; $headers .= "Content-type: text/html; charset=utf-8rn"; $headers .= "From: =?utf-8?b?" . base64_encode($from) . "?= <" . $fromEmail . ">"; return (mail($toEmail, $subject,$content, $headers)); }