<?php
function mail_utf8($to, $subject = '(No subject)', $message = '', $header = '') {
$header_ = 'MIME-Version: 1.0' . "\r\n" . 'Content-type: text/html; charset=UTF-8' . "\r\n";
return mail($to, '=?UTF-8?B?'.base64_encode($subject).'?=', $message, $header_ . $header);
}
// Title Of Entry
$title = "utf-8 string here";
// Content Of Entry
$content = "utf-8 string here...<br>Second Line<br>...";
// Post entry by sending email
$ret = mail_utf8('gmail-account.your-secret-phrase@blogger.com', $title, $content);
echo $ret;
?>
Title:
Send utf-8 email
Description:
<?php function mail_utf8($to, $subject = '(No subject)', $message = '', $header = '') { $header_ ...
...
Rating:
4