Exemplo n.º 1
0
function MailSending($ToName, $To, $Subject, $Body, $From, $FromName)
{
    global $unixtimeasc;
    $ToKind = MailKind($To);
    if ($ToKind == "1") {
        //pc
        $ret = send_html_mail_jis($ToName, $To, $Subject, $Body, $From, $FromName);
    } else {
        if ($ToKind == "2") {
            // AU
            $ret = send_mobile_mail_AU($ToName, $To, $Subject, $Body, $From, $FromName);
        } else {
            if ($ToKind == "3") {
                //docomo, softbank, voda
                $ret = send_mobile_mail($ToName, $To, $Subject, $Body, $From, $FromName);
            }
        }
    }
    return $ret;
}
Exemplo n.º 2
0
function MailSending($ToName, $To, $Subject, $Body, $From, $FromName)
{
    global $unixtimeasc;
    $ToKind = MailKind($To);
    //$qry = "insert into wst_maillog set wm_name='".$ToName."' , wm_id='".$To."', wm_subject='".$Subject."' , wm_body='".$Body."' , wm_regdate='".$unixtimeasc."'";
    //query($qry);
    if ($ToKind == "1") {
        //pc
        $ret = send_html_mail_jis($ToName, $To, $Subject, $Body, $From, $FromName);
    } else {
        if ($ToKind == "2") {
            // AU
            $ret = send_mobile_mail_AU($ToName, $To, $Subject, $Body, $From, $FromName);
        } else {
            if ($ToKind == "3") {
                //docomo, softbank, voda
                $ret = send_mobile_mail($ToName, $To, $Subject, $Body, $From, $FromName);
            }
        }
    }
    return $ret;
}