[PHP-users 30219] Re: メールの文字化け
Mashiki
mashiki @ yanah.com
2006年 9月 2日 (土) 09:05:47 JST
$B!!(BMashiki$B$G$9!#(B
> $B8=>u$G$O!"J8;z%3!<%IJQ49;~$OBP1~$G$-$J$$8+$?$$$G$9$M!#(B
> $B$H$j$"$($:!"NI$/;H$o$l$k$G$"$m$&!"(B
> $B-j$H-k$rA43Q$KCV49$7$FBP=h$7$h$&$H;W$$$^$9!#(B
$B!!E7Ln$5$s$b!"(Bgoungoun$B$5$s$b!"K\J8$r(B7bit$B$K$9$k$N$K(BJIS$B$r(B
$B;HMQ$9$k$H5!<o0MB8J8;z$OAw$l$J$$$H8@$C$F$$$^$9$,!"(B
$B0lHLE*$K5!<o0MB8J8;z$OAw$l$J$$$H$O8@$C$F$$$J$$$O$:!#(B
$B!!!V(BJIS$BJQ49$,I,?\$H$$$&>r7o!W$,C1$K(B8bit$B7O$rN.$7$?$/$J$$$@$1$G(B
$B$"$l$P!"K\J8$r(B7bit$B2=$9$k$N$K(BJIS$BJQ49$NJQ$o$j$K(B
> $B5!<o0MB8J8;z$r4^$`J8>O$r3N<B$KAw$j$?$1$l$P!"K\J8$r(BMime$BJQ49$7$F(B
> Content-Transfer-Encoding: base64
$B$r:NMQ$7$F!"(B(subject$B$O:#$N$^$^$GLdBj$J$$$H$7$F(B)
>mb_language("japanese");
>
$header .= "Content-Type: text/plain; charset=UTF-8\n";
$header .= "Content-Transfer-Encoding: BASE64\n";
$body = base64_encode($body);
>
>$subject = mb_encode_mimeheader(mb_convert_encoding($subject,JIS,UTF8));
>
>mail($to,$subject,$body,$header);
$B$G$O$I$&$G$7$g$&$+!#5!<o0MB8J8;z$O$*$m$+%O%s%0%k8r$8$j$G$b$$$1$k$N$O$:(B
$B$b$7$/$O$b$C$H4JC1$K!"(B
mb_language("uni");
$body = base64_encode($body);
mb_send_mail($to,$subject,$body,$from_header);
$B$GA4$F(B mb_send_mail $B$KG$$;$k$H$+!#(B
PHP-users メーリングリストの案内