Qdmail - PHP::Mail Library , Quick and Detailed for Multibyte

SMTP篋榊篏羈

若吾с0.9.0a篁ラс篏睡

QdSmtpQdmail篏

QdSMTPQdmail<若堺号QdSmtpсSMTP篆荀с

с<若сQdSmtp罘純羇紫篋冴潟若若с

QdSmtp吾с緇号

Qdmail&QdSmtpсSMTP篆<翫ゃ潟若с贋qdsmtp.php<ゃ臀違Qdmail眼уゃ潟若吾с鐚ゃ潟鴻帥潟刻茵障
т梢сQdSmtp吾сQdmailc純сQdSmtp罘純篏ュ慌c障

QdmailсSMTP吾с腓榊宴ゃ篁ヤ鐚ゃ号障
  1. QdmailQdSmtpゃ潟鴻帥潟鴻若吟若羝<
  2. QdSmtpゃ潟鴻帥潟鴻若吟弱眼newQdmail羝<
鐚祉с障сQdSmtp吾с鐚ゃ潟鴻帥潟刻腓榊宴翫сc膂≦smtp篆<QdSmtpсSMTP篆号鴻膂≦障鐚


障鐚号茯障
鐚сPOP BEFORE∫c帥荐障篁QdSmtp<純綽純с鐚

1. QdmailQdSmtpゃ潟鴻帥潟鴻若吟若羝<

泣潟潟若
若吾с0.9.0a篁ラс篏睡
$param = array(
    'host'=>'smtp.example.com',
    'pop_host'=>'pop.example.com',
    'port'=> 25 ,
    'from'=>'from@example.com',
    'protocol'=>'POP_BEFORE',
    'pop_user'=>'pop_user_id',
    'pop_pass' => 'pop_password',
);

$mail -> smtp(true);
$mail -> smtpServer($param);

$smtp=& $mail->smtpObject();                        // QdSmtp吾с緇
$smtp -> pop3TimeFilename( 'henkou_filename.txt' ); // POP九勝<ゃ紊
$smtp -> pop3ValidMinute( 5 );                      // POP紊


$message=$itsme.$sender_mess."吾障";

$flag=$mail ->easyText('address@example.com','絎','帥ゃ',$message,'from@example.com');
(PHP5翫& 綽荀障)

с$smtpQdsmtp吾с鐚ゃ潟鴻帥潟刻篁eャ障сQdsmtp<純篏睡с障

$smtp=& $mail->smtpObject();                        // QdSmtp吾с緇
$smtp -> pop3TimeFilename( 'henkou_filename.txt' ); // POP九勝<ゃ紊
$smtp -> pop3ValidMinute( 5 );                      // POP紊
QdSmtp篏сPHP5翫$smtp紊違c篁eャ篁ヤс障
$smtp -> $mail->smtpObject() -> pop3TimeFilename( 'henkou_filename.txt' ); 
$smtp -> $mail->smtpObject() -> pop3ValidMinute( 5 );
膓鐚号茯障

2. QdSmtpゃ潟鴻帥潟鴻若吟弱眼newQdmail羝<

require_once('qdmail.php');
$message='<font color="red"><若筝荳吾障</font>';
$mail ->to('address@example.com');
$mail ->subject('<若鴻');
$mail ->from('from@example.com');
$mail ->html($message);
//障с絽吾Qdmail篏

//QdSmtp篏
require_once('qdsmtp.php');
$smtp = & new qdsmtp;
$param = array(
    'host'=>'smtp.example.com',
    'pop_host'=>'pop.example.com',
    'port'=> 25 ,
    'from'=>'from@example.com',
    'protocol'=>'POP_BEFORE',
    'pop_user'=>'pop_user_id',
    'pop_pass' => 'pop_password',
);
$smtp -> server($param);
$smtp -> pop3TimeFilename( 'henkou_pop_file.txt' );
$smtp -> pop3ValidMinute( 5 ); 

$mail->setSmtpObject($smtp);//QdmailQdSmtpゃ潟鴻帥潟鴻羝<

$flag=$mail ->send();    

$mail->setSmtpObject($smtp);//QdmailQdSmtpゃ潟鴻帥潟鴻羝<

$flag=$mail ->send();    
PHP5с違篁ヤ吾с障
$flag=$mail -> send($smtp);
send($smtp)綣PHP4с篆<с障$smtpゃ潟鴻帥潟鴻c若潟種clone copy)сュ慌<≪♂篏帥障

# KUNO PHP5篁ヤqdmailqdsmtpf冴篁ヤ純若鴻с吾с羝<SMTPч篆<с...(2010/01/26 15:29)