Send email in Zend Framework 1

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 websites & web applications since 2004 and currently working in London as full-stack Senior Web Developer. I utilize and advocate in the layout, design and coding of websites specifically in PHP format. Experienced in developing applications and solutions for a wide range of corporate, charity and public sector clients and having the enthusiasm and ambition to complete projects to the highest standard. My ulitmate focus is on server side programming, release process, automation, and standards based web site & applications 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 *

*
*

*

code