but I think there's the disadvantage that your Zend_Mail resource would get instantiated at bootstrap time whether you need it or not -- true? -- and not every controller/action in my app needs to send email.

Right.
Finally, I suppose you could set the email configuration data in its own separate config file.

Any thoughts?

I have my email settings in the database. I have extended Zend_Mail and added a method setup().

Class My_Mail extends Zend_Mail
{

   public function setup()
   {
        // get the info to setup the clss
        // set it up
   }
}

Client code:

$mail = new My_Mail();
$mail->setup();



--
With warm regards,
Sudheer. S
Personal home page - http://sudheer.net | Tech Chorus - http://techchorus.net
Web and IT services - http://binaryvibes.co.in

Reply via email to