Skip to main content

2 posts tagged with "zend framework"

View All Tags

This blog post might be outdated!
This blog post was published more than one year ago and might be outdated!
· 2 min read
Stephan Hochdörfer

I had a hard time figuring out how to properly send attachments with ZendMail. All the hints I found on the internet did not work for me. After an intense debugging session I came up with the following "short" snippet that I`d like to share with you. To display the attachments correctly in your favorite MUA you have to supply the correct mime type for the file you want to attach to the mail message. Use this article here as a source for some in-depth insights how you can detect the mime-type for a file with a decent fallback routine (if needed).

This blog post might be outdated!
This blog post was published more than one year ago and might be outdated!
· One min read
Stephan Hochdörfer

Beim Versuch eine Multipart Message via Zend_Mail und den SMTP Transport über einen Postfix Mailserver eines unserer Kunden zu senden trat folgender Fehler auf. Postfix meldete "invalid message/* or multipart/* encoding domain" und verweigerte die Annahme der E-Mail. Nicht-Multipart Messages konnten hingegen problemlos versandt werden.