Zend_Mail attachments not recognised in MS Outlook

Here’s an annoying little problem with a simple fix. If you are creating emails with Zend_Mail and you find that MS Outlook just can’t recognise the attachment, try setting the attachment’s filename property. This forces Outlook to see the file extension and therefore make the attachment openable. Mail.app on the Mac is smart enough to extrapolate what it needs from the Mime Type, but Outlook seems to depend on the filename. Your milage may vary but this should ensure the attachment works in most other email clients too.

This entry was posted in Uncategorized and tagged , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>