$mail = new Zend_Mail();
$content = file_get_contents("attachment.docx")
$mail->createAttachment($content,
"application/actet-stream", // Default
Zend_Mime::DISPOSITION_ATTACHMENT, // Default
Zend_Mime::ENCODING_BASE64, // Default
"attachment.docx");
$content = file_get_contents("flower.gif")
$attachment = new Zend_Mime_Part($content);
$attachment->type = 'image/gif';
$attachment->disposition = Zend_Mime::DISPOSITION_INLINE;
$attachment->encoding = Zend_Mime::ENCODING_BASE64;
$attachment->filename = 'flower.gif';
$mail->addAttachment($attachment);
martes, 3 de septiembre de 2013
Attachment Word Zend Framework
Suscribirse a:
Comentarios (Atom)