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

Public メソッド

 Mail_mock ($params)
 send ($recipients, $headers, $body)

変数

 $sentMessages = array()
 $_preSendCallback
 $_postSendCallback

関数

Mail_mock ( params)

Constructor.

Instantiates a new Mail_mock:: object based on the parameters passed in. It looks for the following parameters, both optional: preSendCallback Called before an email would be sent. postSendCallback Called after an email would have been sent.

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

Implements Mail_mock::send() function. Silently discards all mail.

引数:
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

Mailを再定義しています。


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