ZF-1737: Zend_Mail_Transport example for multiple mails per connection
The example here doesn't work http://framework.zend.com/manual/en/…
Zend_Mail_Transport_Smtp does not even have connect() or disconnect() methods!
The transport itself automatically creates a connection when sending the first email -- it provides no mechanism for doing so beforehand.
Perhaps the example should include something like the following:
$conn = new Zend_Mail_Protocol_Smtp($host, $port); $conn->connect(); $tr = new Zend_Mail_Transport_Smtp; $tr->setConnection($conn);