メール送信
$_from = "送信元";
$_to = "送信先";
$_subject = "題名";
$_body = "本文";
// ヘッダ
$_head = "";
$_head .= "From:" . $_from . "\n";
$_head .= "Reply-To:" . $_from . "\n";
$_head .= "X-Mailer: PHP/" . phpversion() . "\n";
$_head .= "MIME-version: 1.0\n";
$_head .= "Content-Type: text/plain; charset=ISO-2022-JP\n";
$_head .= "Content-Transfer-Encoding: 7bit";
$enc = mb_convert_encoding($_subject,"JIS","EUC-JP");
$_conv_subject = "=?ISO-2022-JP?B?" . base64_encode($enc) . "?=";
// 本文
$_conv_body = mb_convert_encoding($_body,"JIS","EUC-JP");
// 送信
mail($_to, $_conv_subject, $_conv_body, $_head,'-f'.$_from);
?>