メインコンテンツまでスキップ

Mail::log

メール送信の代わりにログファイルを保存します

説明

public self Mail::log( string $to, [ string $from_name = null, string $from_ad = null ] )

引数

名前データ型デフォルト備考
$tostring送信先メールアドレス
$from_namestringnull送信者名
$from_adstringnull送信者アドレス

Controller
$mail = $this->getClass('Tool/Mail');
$mail->subject('Mail subject');
$mail->body('Mail body');

$mail->log('mail@example.com', 'John Doe', 'from@example.com');