| Revision 8,
475 bytes
checked in by root, 19 years ago
(diff) |
|
new import
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | ini_set("mbstring.http_output", "UTF-8"); |
|---|
| 4 | ini_set("mbstring.internal_encoding", "UTF-8"); |
|---|
| 5 | |
|---|
| 6 | $to = "[email protected]"; |
|---|
| 7 | $body = "¥Æ¥¹¥È¤Ç¤¹¡£¥¢¥¤¥¦¥í¥¨??????¼ô??"; |
|---|
| 8 | |
|---|
| 9 | $body = mb_convert_encoding($body, 'UTF-8', "EUC-JP"); |
|---|
| 10 | |
|---|
| 11 | print("<html><head><meta http-equiv='Content-Type' content='text/html; charset=UTF-8'></head><body>\n"); |
|---|
| 12 | print("<b>" . $body . "</b>"); |
|---|
| 13 | |
|---|
| 14 | echo("</body></html>"); |
|---|
| 15 | |
|---|
| 16 | /* |
|---|
| 17 | mb_language("uni"); |
|---|
| 18 | |
|---|
| 19 | if(mb_send_mail($to, "test", $body)){ |
|---|
| 20 | print("ok"); |
|---|
| 21 | } |
|---|
| 22 | */ |
|---|
| 23 | |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.