Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 458
  • Last Modified:

Zend framework mail


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?
1 Solution

The Zend_Mail_Transport_Sendmail class uses PHP's built-in mail() function (http://php.net/manual/en/function.mail.php). 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, http://en.wikipedia.org/wiki/Message_transfer_agent), 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now