Zend framework mail

Hi,

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?
LVL 1
joyacv2Asked:
Who is Participating?
 
absxCommented:
Hi,

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.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.