EC-CUBE
Public メソッド | 変数
クラス Mail_smtpmx
Mail_smtpmxに対する継承グラフ
Inheritance graph
[凡例]
Mail_smtpmxのコラボレーション図
Collaboration graph
[凡例]

Public メソッド

 __construct ($params)
 Mail_smtpmx ($params)
 __destruct ()
 send ($recipients, $headers, $body)
 _getMx ($host)
 _loadNetDns ()
 _raiseError ($id, $info=array())

変数

 $_smtp = null
 $port = 25
 $mailname = 'localhost'
 $timeout = 10
 $withNetDns = true
 $resolver
 $verp = false
 $vrfy = false
 $test = false
 $debug = false
 $errorCode

コンストラクタとデストラクタ

__construct ( params)

Constructor.

Instantiates a new Mail_smtp:: object based on the parameters passed in. It looks for the following parameters: mailname The name of the local mail system (a valid hostname which matches the reverse lookup) port smtp-port - the default comes from getservicebyname() and should work fine timeout The SMTP connection timeout. Defaults to 30 seconds. vrfy Whether to use VRFY or not. Defaults to false. verp Whether to use VERP or not. Defaults to false. test Activate test mode? Defaults to false. debug Activate SMTP and Net_DNS debug mode? Defaults to false. netdns whether to use PEAR:Net_DNS or the PHP build in function getmxrr, default is true

If a parameter is present in the $params array, it replaces the default.

public

引数:
arrayHash containing any parameters different from the defaults.
参照:
_Mail_smtpmx()

Destructor implementation to ensure that we disconnect from any potentially-alive persistent SMTP connections.


関数

_getMx ( host)

Recieve mx rexords for a spciefied host

The MX records

private

引数:
string$hostmail host
戻り値:
mixed sorted

initialize PEAR:Net_DNS_Resolver

private

戻り値:
boolean true on success
_raiseError ( id,
info = array() 
)

raise standardized error

include additional information in error message

private

引数:
string$idmaps error ids to codes and message
array$infooptional information in associative array
参照:
_errorCode
Mail_smtpmx ( params)

Constructor wrapper for PHP4

public

引数:
arrayHash containing any parameters different from the defaults
参照:
__construct()
send ( recipients,
headers,
body 
)

Implements Mail::send() function using SMTP direct delivery

public

引数:
mixed$recipientsin RFC822 style or array
array$headersThe array of headers to send with the mail.
string$bodyThe full text of the message body,
戻り値:
mixed Returns true on success, or a PEAR_Error

Mailを再定義しています。


構造体

boolean $debug = false

Switch to test mode - don't send emails for real

internal error codes

translate internal error identifier to PEAR-Error codes and human readable messages.

TODO:
as I need unique error-codes to identify what exactly went wrond I did not use intergers as it should be. Instead I added a "namespace" for each code. This avoids conflicts with error codes from different classes. How can I use unique error codes and stay conform with PEAR?
boolean $vrfy = false

Whether to use VRFY or not.


このクラスの説明は次のファイルから生成されました:
 全て データ構造 ネームスペース 関数 変数