Zend framework mail

Posted on 2011-05-01
Last Modified: 2013-11-10

I don't understand how works the Zend_mail_transport_sendmail? I understand the zend_mail_transport_smtp, that works with a smtp server, a username and a password. But how work the sendmail, what service it's use? Is use the Apache server, in my case on MAMP? Can you mention the differences between the two?
Question by:joyacv2
    1 Comment
    LVL 9

    Accepted Solution


    The Zend_Mail_Transport_Sendmail class uses PHP's built-in mail() function ( It has platform-specific implementation differences, but on your Unix-like MAMP platform it would interface with the system's default mail transfer agent (MTA,, which for Linux is often Sendmail, but for Mac OS X could be Postfix (unsure but irrelevant). Interfacing a local MTA is potentially faster than with a remote SMTP server over TCP/IP, but as you can tell from the long thread of discussion on the PHP manual page, the PHP implementation for local MTA interfacing isn't very good.

    I would recommend sticking to the Zend_Mail_Transport_Smtp class, which is prepared to connect to any defined SMTP server over the Internet TCP/IP protocol and send your mails natively using the SMTP protocol.


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    This is a general how to create your own custom plugin system for your PHP application that you designed (or wish to extend a third party program to have plugin functionality that doesn't have it yet).  This is not how to make plugins for existing s…
    Both Easy and Powerful How easy is PHP? (  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    The viewer will learn how to count occurrences of each item in an array.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now