Exemple #1
0
function send_ashiato($from, $ashiato)
{
    $mail_message = "";
    foreach ($ashiato as $aa) {
        $u = new \mixi\profile\obj($aa->from);
        $u->load();
        $message = "<p><a href='http://www.mixi.jp/show_friend.pl?id=%d&from=navi'>%s</a> visited your page at %s<br><img src='%s' alt='%s'></p>";
        $message = sprintf($message, $u->id(), $u->nickname, $aa->datetime, $u->profile_picture1, $u->nickname . "'s picture");
        $mail_message .= $message . "\n<hr>";
    }
    POP3::send_mail($from, 'Ashiato List', $mail_message);
}