Mail_Postmark::addAttachment
Add a physical file as an attachment Options: - filenameAlias, use a different filename for the attachment
Signature
public function addAttachment(string
$filename,
[array
$options = ] )
Parameters
$filename
— string- Location of the file
$options
— array- An optional array with options
Returns
- Mail_Postmark
Errors/Exceptions
-
InvalidArgumentException
- If file doesn't exist
-
OverflowException
- If maximum attachment size has been reached