Line Riderにはまる
Saturday, February 28th, 2009はまってます。
Line Rider
http://fsk.deviantart.com/art/Line-Rider-beta-40255643
落ちる時の挙動がおもしろい。
まだ体験していない人は是非!
はまってます。
Line Rider
http://fsk.deviantart.com/art/Line-Rider-beta-40255643
落ちる時の挙動がおもしろい。
まだ体験していない人は是非!
YAK for WordPressで、注文確認メールがサーバーのセッティングによっておかしなことになるようなので、カスタマイズ。差出人はやはり店舗名を入れたいので、ごちゃごちゃといじってみました。
yak-payments.phpの最後の方をこんな感じに変更。
サーバーによって対応方法は違うと思いますが・・・日本語はめんどくさいね。
//if (!function_exists(”sendmail”)) {
// function sendmail($from, $replyto, $to, $subject, $message) {
// $boundary = md5(time());
//
// $headers = “MIME-Version: 1.0\n” .
// “From: ” . $from . “\n” .
// “Reply-To: ” . $replyto . “\n” .
// “Content-Type: text/plain; charset=UTF-8\n” .
// “Content-Transfer-Encoding: 8bit\n”;
//
// wp_mail($to, $subject, $message, $headers);
// }
//}
if (!function_exists(”sendmail”)) {
function sendmail($from, $replyto, $to, $subject, $message) {
mb_language(”ja”);
mb_internal_encoding(”UTF-8″);
$confEmail2 = yak_get_option(CONFIRMATION_EMAIL_ADDRESS, ”);
$boundary = md5(time());
$headers = “MIME-Version: 1.0\n” .
“From: “.mb_encode_mimeheader(mb_convert_encoding(”差出人の名前”,”JIS”,”UTF-8″)).”<”.$confEmail2 .”>\n” .
“Reply-To: ” . $replyto . “\n” .
“Content-Type: text/plain; charset=UTF-8\n” .
“Content-Transfer-Encoding: 8bit\n”;
wp_mail($to, $subject, $message, $headers);
return @mb_send_mail($to, $subject, $message, $headers);
}
}