Randy W. Sims wrote:
Scott R. Godin wrote:


For a project I'm on, I'm pondering whether or not to subclass one of the various Mail::* implementations out there, with an eye for Mail::Mailer.


Does anyone have any recommendations in this regard? gotchas & things I should watch out for ? pointers? examples? :)


I don't understand why you want to subclass Mail::Mailer. You haven't given us enough information. Are you looking to add some functionality not present in any of the mailers? What kind of functionality?


Randy.


ahh no, nothing in that regard.. What I want is to add some of said capabilities to another module that I'm creating that's unrelated to any thing to do with mailing. The object merely tracks some client data. In some instances I'll want to send an e-mail to the address in the client data, if they have supplied one. The body of the mail may be created from a Text::Template or some other source, possibly, but essentially I would like to, at some branch in the end-user code, hand it off to be mailed out, but with certain prerequisites determined by my own object.

I'm still teaching myself OOPerl, so I don't know how to define it any clearer than that. a lot of the finished functionality of the complete package I'm trying to write is still in a nebulous state, so some of it is up in the air as well, currently.

Does this help any?

More or less I want to add Mail::Mailer (or some other similar module) functionality to my package, that will let me send attachments (pdf files, or similar) that will be coupons for birthdays, that the client will have signed up to receive, and additionally, regular mailings of special events.

Some of them will be going out snailmail and some going out e-mail as per client preferences.

--
Scott R. Godin
Laughing Dragon Services
www.webdragon.net

Reply via email to