Changeset 16297


Ignore:
Timestamp:
2007/10/06 18:34:51 (16 years ago)
Author:
naka
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-paygent/html/test/naka/mail.php

    r16271 r16297  
    33require_once("../../admin/require.php"); 
    44 
    5  
    6             //-- ʸ»ú¤òÆüËܸì¤ËÀßÄê 
     5            //-- ʸ»ú¤òÆüËܸì¤ËÀßÄê 
    76            Mb_language( "Japanese" ); 
    87                   
    98            //-- Á÷¿®¤¹¤ë¥á¡¼¥ë¤ÎÆâÍÆ¤ÈÁ÷¿®Àè 
    109            $sendResut = array(  
    11                 "to" => 'naka@lockon.co.jp',                    //¡¡¸ÜµÒ°¸Àè  
    12                 "subject" => mb_encode_mimeheader("¤Æ¤¹¤È"),    //¡¡Subject   
    13                 "from" => 'naka@lockon.co.jp',                  //¡¡Á÷¿®¸µ¥á¡¼¥ë¥¢¥É¥ì¥¹  
    14                 "replay_to" => 'naka@lockon.co.jp',          //¡¡reply_to  
    15                 "return_path" => 'naka@lockon.co.jp',          //¡¡return_path 
     10                "to" => 'abnana210@ezweb.ne.jp',                    //¡¡¸ÜµÒ°¸Àè  
     11                "Subject" => mb_encode_mimeheader("¤Æ¤¹¤È"),    //¡¡Subject   
     12                "From" => 'test01@lockon.co.jp',                //¡¡Á÷¿®¸µ¥á¡¼¥ë¥¢¥É¥ì¥¹  
     13                "Reply-To" => 'test02@lockon.co.jp',            //¡¡reply_to  
     14                "Return-Path" => 'test03@lockon.co.jp',         //¡¡return_path 
    1615            ); 
    17  
     16             
    1817            //-- Mail_mime¥ª¥Ö¥¸¥§¥¯¥È¤ËHTML¤ÎËÜʸ¤òÄɲà
    1918            $mailBody = mb_convert_encoding("¥Æ¥¹¥È¤Ç¤¹¡£", "JIS", CHAR_CODE); 
     
    2120            //-- Mail_mime¥ª¥Ö¥¸¥§¥¯¥ÈºîÀ® 
    2221            $mail_mimeObj = new Mail_mime(); 
    23              
    24              
     22                         
    2523            //-- ¥á¥Ã¥»¡¼¥¸¤Î¹½ÃÛ 
    2624            $enc_param['head_charset'] = "ISO-2022-JP"; 
     
    2826            $enc_param['html_charset'] = "ISO-2022-JP"; 
    2927            $mail_mimeObj->setHTMLBody($mailBody); 
    30              
    31              
     28                         
    3229            /* 
    33              
    3430            $enc_param['text_charset'] = "ISO-2022-JP"; 
    3531            $mail_mimeObj->setTXTBody($mailBody); 
     
    3834            $param = array(    
    3935                       'host' => '216.255.239.201', 
     36                       //'host' => '210.188.192.18', 
    4037                       'port' => 25                   
    4138                                                  ); 
     
    5653            $result = $mailObj->send($sendResut["to"], $header, $body); 
    5754             
    58             if (PEAR::isError($result)) { print($result->getMessage());} 
    59  
     55            if (PEAR::isError($result)) {  
     56                print($result->getMessage()); 
     57            } else { 
     58                print("ok"); 
     59            } 
    6060?> 
Note: See TracChangeset for help on using the changeset viewer.