PHP mail() UTF-8
March 17th, 2009
No comments
PHP:
-
function mail_utf8($from, $to, $subject = '(No subject)', $message = '', $header = '') {
-
$header_ = 'MIME-Version: 1.0' . "\r\n" . 'Content-type: text/html; charset=UTF-8' . "\r\n";
-
$header_ .= "From: $from\r\n" . "Reply-To: $from\r\n";
-
}