検索条件
全13件
(12/13ページ)
require_once('qdsmtp.php');
$param = array(
'host'=>'smtp.example.com',
'port'=> 25 ,
'from'=>'from@example.com',
'protocol'=>'SMTP',
);
$smtp = & new QdSmtp($param);
PHP5では、newの前の&は必要ありません。$smtp -> server( $param );また、Fromについては以下の指定方法もできます。(0.2.0a以降)
'from'=>'<from@example.com>',
または
'from'=>'<from@example.com> add_parameter',
$param = array(
'host'=>'smtp.example.com',
'port'=> 25,
'from'=>'from@example.com',
'protocol'=>'POP_BEFORE',
'pop_host' =>'pop.example.com',
'pop_user' => 'username',
'pop_pass'=>'password',
);
$param = array(
'host'=>'smtp.example.com',
'port'=> 587,
'from'=>'address@example.com',
'protocol'=>'SMTP_AUTH',
'from'=>'from@example.com',
'user'=>'username',
'pass' => 'password',
);