EC-CUBE
Public メソッド | 変数
クラス Mail
Mailに対する継承グラフ
Inheritance graph
[凡例]

Public メソッド

factory ($driver, $params=array())
 send ($recipients, $headers, $body)
 _sanitizeHeaders (&$headers)
 prepareHeaders ($headers)
 parseRecipients ($recipients)

変数

 $sep = "\r\n"

関数

_sanitizeHeaders ( &$  headers)

Sanitize an array of mail headers by removing any additional header strings present in a legitimate header's value. The goal of this filter is to prevent mail injection attacks.

引数:
array$headersThe associative array of headers to sanitize.

private

& factory ( driver,
params = array() 
)

Provides an interface for generating Mail:: objects of various types

引数:
string$driverThe kind of Mail:: object to instantiate.
array$paramsThe parameters to pass to the Mail:: object.
戻り値:
object Mail a instance of the driver class or if fails a PEAR Error public
parseRecipients ( recipients)

Take a set of recipients and parse them, returning an array of bare addresses (forward paths) that can be passed to sendmail or an smtp server with the rcpt to: command.

引数:
mixedEither a comma-seperated list of recipients (RFC822 compliant), or an array of recipients, each RFC822 valid.
戻り値:
mixed An array of forward paths (bare addresses) or a PEAR_Error object if the address list could not be parsed. private
prepareHeaders ( headers)

Take an array of mail headers and return a string containing text usable in sending a message.

引数:
array$headersThe array of headers to prepare, in an associative array, where the array key is the header name (ie, 'Subject'), and the array value is the header value (ie, 'test'). The header produced from those values would be 'Subject: test'.
戻り値:
mixed Returns false if it encounters a bad address, otherwise returns an array containing two elements: Any From: address found in the headers, and the plain text version of the headers. private
send ( recipients,
headers,
body 
)

Implements Mail::send() function using php's built-in mail() command.

引数:
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 (ie, 'Subject'), and the array value is the header value (ie, '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

非推奨:
use Mail_mail::send instead

Mail_smtpmx, Mail_smtp, Mail_mock, Mail_mail, Mail_sendmail, と Mail_nullで再定義されています。


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