Skip to main content

Mail::pushAttached

Add attachment file

Description

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

Arguments

NameData typeDefaultRemarks
$filePathstringAttachment file path
$fileNamestringnullSpecified file name on email

Example

Controller
$mail = $this->getClass('Tool/Mail');
$mail->pushAttached('path/to/file.jpg');