Mail::log
メール送信の代わりにログファイルを保存します
説明
public self Mail::log( string $to, [ string $from_name = null, string $from_ad = null ] )
引数
名前 | データ型 | デフォルト | 備考 |
---|---|---|---|
$to | string | 送信先メールアドレス | |
$from_name | string | null | 送信者名 |
$from_ad | string | null | 送信者アドレス |
例
Controller
$mail = $this->getClass('Tool/Mail');
$mail->subject('Mail subject');
$mail->body('Mail body');
$mail->log('mail@example.com', 'John Doe', 'from@example.com');