Details
Description
The documentation of the Attachments in Zend_Mail is mainly about the addAttachment() method whereas it should be the createAttachment() method.
If you look at addAttachment in Zend/Mail.php you'll see that the argument should be a Zend_Mime_Part object.
public function addAttachment(Zend_Mime_Part $attachment)
{ $this->addPart($attachment); $this->hasAttachments = true; return $this; }But the documentation says that it should a binary string "$mail->addAttachment($myImage, 'image/gif', Zend_Mime::DISPOSITION_INLINE, Zend_Mime::ENCODING_8BIT);". These arguments match to the createAttachment() method and therefore this should be used instead of the addAttachment() in the documentation.
public function createAttachment($body,
$mimeType = Zend_Mime::TYPE_OCTETSTREAM,
$disposition = Zend_Mime::DISPOSITION_ATTACHMENT,
$encoding = Zend_Mime::ENCODING_BASE64,
$filename = null)
Assigning to Nico.