Send email in Zend Framework 1

Share Button

Hello there,

I wrote this code recently in Zend Framework to send emails from the application. The following examples are for sending text only email, email with single attachment and email with multiple attachments.

Text only email

Email with single attachment

The following example is attaching a single PDF file with it. So you have to pass the file location on $pdf variable.

Send email with multiple attachments

Literally the attachments are the array of multiple PDF file loactions.

Any suggestions or corrections are most welcome! 🙂

I have been developing web sites since 2004 and currently working in London as a Senior Web Developer with responsibility for PHP/MySQL backend systems and jQuery frontend development. My ulitmate focus is on server side programming, release process, automation, and standards based web site design especially on Zend Framework. I also have a keen interest in developing Wordpress plugins and contributing to open source projects.

Leave a Comment

Your email address will not be published. Required fields are marked *