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

Mail::pushAttached

添付ファイルを追加

説明

public self Mail::pushAttached( string $filePath, [ string $fileName = null ] )

引数

名前データ型デフォルト備考
$filePathstring添付ファイルのパス
$fileNamestringnullメール上の指定ファイル名

Controller
$mail = $this->getClass('Tool/Mail');
$mail->pushAttached('path/to/file.jpg');
$mail->pushAttached('path/to/document.pdf', 'レポート.pdf');