Changeset 12930


Ignore:
Timestamp:
2007/05/17 18:01:10 (17 years ago)
Author:
matsumoto
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/html/admin/mail/sendmail.php

    r12928 r12930  
    8080        if(MELMAGA_MOBIE_SEND){ 
    8181            if($mail_data[$i][0]["mail_method"]) { 
    82                 $true = "Å·µ¤À²Ï¯¤Ê¤ì¤ÉÇȹ⤷"; 
    83                 print_r($true); 
     82                //SMTP¥µ¡¼¥Ð  
     83                                        $mail_send = array(  
     84                                         'host' => '210.188.254.83',  
     85                                         'port' => '25',  
     86                                         'auth' => false,  
     87                                     'username' => '',  
     88                                         'password' => '',  
     89                                        );  
     90                                          
     91                                        $recipinets = $list_data[$i][$j]["email"];  
     92                                          
     93                                        $headers['From']    = $objSite->data["email03"];  
     94                        $headers['To']      = $list_data[$i][$j]["email"];  
     95                        $headers['Subject'] = $subjectBody;  
     96                          
     97                        $body = $mailbody;  
     98                          
     99                                        $objMail =& Mail::factory("SMTP", $mail_send);  
     100                                        $result = $objMail->send($recipients, $headers, $body);  
     101                                        if (PEAR::isError($result)) {  
     102                            die($result->getMessage());  
     103                        }  
    84104        ¡¡¡¡} else { 
    85             //-- ¥Æ¥­¥¹¥È¥á¡¼¥ëÇÛ¿®¤Î¾ì¹ç 
    86             if( $mail_data[$i][0]["mail_method"] == 2 ) { 
    87  
    88                 $sendResut = MAIL_SENDING( 
    89                                          $list_data[$i][$j]["email"]                //¡¡¸ÜµÒ°¸Àè 
    90                                         ,$subjectBody                               //¡¡Subject 
    91                                         ,$mailBody                                  //¡¡¥á¡¼¥ëËÜʸ 
    92                                         ,$objSite->data["email03"]                  //¡¡Á÷¿®¸µ¥á¡¼¥ë¥¢¥É¥ì¥¹ 
    93                                         ,$objSite->data["company_name"]             //¡¡Á÷¿®¸µÌ¾ 
    94                                         ,$objSite->data["email03"]                  //¡¡reply_to 
    95                                         ,$objSite->data["email04"]                  //¡¡return_path 
    96                                         ,$objSite->data["email04"]                  //¡¡errors_to 
     105                //-- ¥Æ¥­¥¹¥È¥á¡¼¥ëÇÛ¿®¤Î¾ì¹ç 
     106                if( $mail_data[$i][0]["mail_method"] == 2 ) { 
     107 
     108                    $sendResut = MAIL_SENDING( 
     109                                             $list_data[$i][$j]["email"]                //¡¡¸ÜµÒ°¸Àè 
     110                                            ,$subjectBody                               //¡¡Subject 
     111                                            ,$mailBody                                  //¡¡¥á¡¼¥ëËÜʸ 
     112                                            ,$objSite->data["email03"]                  //¡¡Á÷¿®¸µ¥á¡¼¥ë¥¢¥É¥ì¥¹ 
     113                                            ,$objSite->data["company_name"]             //¡¡Á÷¿®¸µÌ¾ 
     114                                            ,$objSite->data["email03"]                  //¡¡reply_to 
     115                                            ,$objSite->data["email04"]                  //¡¡return_path 
     116                                            ,$objSite->data["email04"]                  //¡¡errors_to 
    97117                                                                             ); 
    98118 
    99             //--  HTML¥á¡¼¥ëÇÛ¿®¤Î¾ì¹ç   
    100             } elseif( $mail_data[$i][0]["mail_method"] == 1 || $mail_data[$i][0]["mail_method"] == 3) { 
     119                //--  HTML¥á¡¼¥ëÇÛ¿®¤Î¾ì¹ç   
     120                } elseif( $mail_data[$i][0]["mail_method"] == 1 || $mail_data[$i][0]["mail_method"] == 3) { 
    101121             
    102                 $sendResut = HTML_MAIL_SENDING( 
     122                    $sendResut = HTML_MAIL_SENDING( 
    103123                                                 $list_data[$i][$j]["email"] 
    104124                                                ,$subjectBody 
     
    110130                                                ,$objSite->data["email04"]                  //¡¡errors_to 
    111131                                                                         ); 
    112             } 
     132                } 
    113133            } 
    114134        } 
Note: See TracChangeset for help on using the changeset viewer.