Last active
August 29, 2015 14:03
-
-
Save hirayama-evolni/00fe77ccddc6a3449424 to your computer and use it in GitHub Desktop.
PHPで日本語メール
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$subject = "てすと"; | |
$body = <<<END | |
ほんぶん1 | |
ほんぶん2 | |
ほんぶん3 | |
ほんぶん4 | |
ほんぶん5 | |
ほんぶん6 | |
END; | |
$headers = <<<END | |
From: hirayama@evol-ni.com | |
END; | |
//mb_language('Japanese'); // JIS | |
mb_language('uni'); // UTF-8 | |
mb_internal_encoding('UTF-8'); | |
$to = 'hirayama@evol-ni.com'; | |
$result = mb_send_mail($to, $subject, $body, $headers); | |
echo $result, "\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment