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

Public メソッド

 Mail_smtp ($params)
 _Mail_smtp ()
 send ($recipients, $headers, $body)
getSMTPObject ()
 addServiceExtensionParameter ($keyword, $value=null)
 disconnect ()
 _error ($text, &$error)

変数

 $_smtp = null
 $_extparams = array()
 $host = 'localhost'
 $port = 25
 $auth = false
 $username = ''
 $password = ''
 $localhost = 'localhost'
 $timeout = null
 $debug = false
 $persist = false
 $pipelining

関数

_error ( text,
&$  error 
)

Build a standardized string describing the current SMTP error.

引数:
string$textCustom string describing the error context.
object$errorReference to the current PEAR_Error object.
戻り値:
string A string describing the current SMTP error.
から:
1.1.7 private

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

addServiceExtensionParameter ( keyword,
value = null 
)

Add parameter associated with a SMTP service extension.

引数:
stringExtension keyword.
stringAny value the keyword needs.
から:
1.2.0 public

Disconnect and destroy the current SMTP connection.

戻り値:
boolean True if the SMTP connection no longer exists.
から:
1.1.9 public

Connect to the SMTP server by instantiating a Net_SMTP object.

戻り値:
mixed Returns a reference to the Net_SMTP object on success, or a PEAR_Error containing a descriptive error message on failure.
から:
1.2.0 public
Mail_smtp ( params)

Constructor.

Instantiates a new Mail_smtp:: object based on the parameters passed in. It looks for the following parameters: host The server to connect to. Defaults to localhost. port The port to connect to. Defaults to 25. auth SMTP authentication. Defaults to none. username The username to use for SMTP auth. No default. password The password to use for SMTP auth. No default. localhost The local hostname / domain. Defaults to localhost. timeout The SMTP connection timeout. Defaults to none. verp Whether to use VERP or not. Defaults to false. DEPRECATED as of 1.2.0 (use setMailParams()). debug Activate SMTP debug mode? Defaults to false. persist Should the SMTP connection persist? pipelining Use SMTP command pipelining

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

引数:
arrayHash containing any parameters different from the defaults. public
send ( recipients,
headers,
body 
)

Implements Mail::send() function using SMTP.

引数:
mixed$recipientsEither a comma-seperated list of recipients (RFC822 compliant), or an array of recipients, each RFC822 valid. This may contain recipients not specified in the headers, for Bcc:, resending messages, etc.
array$headersThe array of headers to send with the mail, in an associative array, where the array key is the header name (e.g., 'Subject'), and the array value is the header value (e.g., 'test'). The header produced from those values would be 'Subject: test'.
string$bodyThe full text of the message body, including any MIME parts, etc.
戻り値:
mixed Returns true on success, or a PEAR_Error containing a descriptive error message on failure. public

Mailを再定義しています。


構造体

boolean $debug = false

Turn on Net_SMTP debugging?


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