Changeset 16297
- Timestamp:
- 2007/10/06 18:34:51 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-paygent/html/test/naka/mail.php
r16271 r16297 3 3 require_once("../../admin/require.php"); 4 4 5 6 //-- ʸ»ú¤òÆüËܸì¤ËÀßÄê 5 //-- ʸ»ú¤òÆüËܸì¤ËÀßÄê 7 6 Mb_language( "Japanese" ); 8 7 9 8 //-- Á÷¿®¤¹¤ë¥á¡¼¥ë¤ÎÆâÍÆ¤ÈÁ÷¿®Àè 10 9 $sendResut = array( 11 "to" => ' naka@lockon.co.jp', //¡¡¸ÜµÒ°¸Àè12 " subject" => mb_encode_mimeheader("¤Æ¤¹¤È"), //¡¡Subject13 " from" => 'naka@lockon.co.jp', //¡¡Á÷¿®¸µ¥á¡¼¥ë¥¢¥É¥ì¥¹14 " replay_to" => 'naka@lockon.co.jp',//¡¡reply_to15 " return_path" => 'naka@lockon.co.jp',//¡¡return_path10 "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 16 15 ); 17 16 18 17 //-- Mail_mime¥ª¥Ö¥¸¥§¥¯¥È¤ËHTML¤ÎËÜʸ¤òÄɲà 19 18 $mailBody = mb_convert_encoding("¥Æ¥¹¥È¤Ç¤¹¡£", "JIS", CHAR_CODE); … … 21 20 //-- Mail_mime¥ª¥Ö¥¸¥§¥¯¥ÈºîÀ® 22 21 $mail_mimeObj = new Mail_mime(); 23 24 22 25 23 //-- ¥á¥Ã¥»¡¼¥¸¤Î¹½ÃÛ 26 24 $enc_param['head_charset'] = "ISO-2022-JP"; … … 28 26 $enc_param['html_charset'] = "ISO-2022-JP"; 29 27 $mail_mimeObj->setHTMLBody($mailBody); 30 31 28 32 29 /* 33 34 30 $enc_param['text_charset'] = "ISO-2022-JP"; 35 31 $mail_mimeObj->setTXTBody($mailBody); … … 38 34 $param = array( 39 35 'host' => '216.255.239.201', 36 //'host' => '210.188.192.18', 40 37 'port' => 25 41 38 ); … … 56 53 $result = $mailObj->send($sendResut["to"], $header, $body); 57 54 58 if (PEAR::isError($result)) { print($result->getMessage());} 59 55 if (PEAR::isError($result)) { 56 print($result->getMessage()); 57 } else { 58 print("ok"); 59 } 60 60 ?>
Note: See TracChangeset
for help on using the changeset viewer.