ツール/Sendmail関数(PHP Script) † function send_mail($from, $to, $subject, $body, $from_name = ""){ $from_name = mb_convert_encoding($from_name,"JIS","EUC-JP"); $subject = mb_convert_encoding($subject,"JIS","EUC-JP"); $body = mb_convert_encoding($body,"JIS","EUC-JP"); if($subject != ""){ $subject = mime_enc($subject); } $body = str_replace("\r\n", "\n", $body); $body = str_replace("\r" , "\n", $body);