ZF-1737: Zend_Mail_Transport example for multiple mails per connection

Description

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);

Comments

Assigning to [~matthew] to initiate issue review.

Scheduling for 1.1.0

Simon, can you take this one?

Commited to trunk - could please review at your earliest convenience?