Mail::pushAttached
Add attachment file
Description
public self Mail::pushAttached( string $filePath, [ string $fileName = null ] )
Arguments
| Name | Data type | Default | Remarks |
|---|---|---|---|
| $filePath | string | Attachment file path | |
| $fileName | string | null | Specified file name on email |
Example
Controller
$mail = $this->getClass('Tool/Mail');
$mail->pushAttached('path/to/file.jpg');