Attachment is automatically added to the mail object after creation. The
attachment object is returned to allow for further manipulation.
public createAttachment ( string $body, string $mimeType = Zend_Mime::TYPE_OCTETSTREAM, string $disposition = Zend_Mime::DISPOSITION_ATTACHMENT, string $encoding = Zend_Mime::ENCODING_BASE64, string $filename = null ) : Zend_Mime_Part | ||
$body | string | |
$mimeType | string | |
$disposition | string | |
$encoding | string | |
$filename | string | OPTIONAL A filename for the attachment |
return | Zend_Mime_Part | Newly created Zend_Mime_Part object (to allow advanced settings) |