From: James Britt Date: 2004-07-23T12:14:49+09:00 Subject: Re: "Name my HTML E-mail lib" contest Austin Ziegler wrote: > On Thu, 22 Jul 2004 21:22:51 -0400, Austin Ziegler wrote: > >>Use the MIME namespace, IMO. MIME::Mail, MIME::MultipartMail, or >>MIME::Mail::Multipart or something like that. > > > On further consideration, I think -- I haven't played with it > seriously for porting, yet -- that your library implements *part* of > MIME::Tools from Perl -- you may want to look at that to get an idea, > but I do think that my original idea holds merit: MIME is the right > namespace for this. Interesting. The code currently returns the complete E-mail object: headers followed by the multipart content. Maybe I should split this out, so that there is a class that returns only the MIME part; another "wrapper" class can combine this with the headers to make the complete text for mailing. The lib I would release, then, would just be the multipart-generating code. It could be bundled with some example or test code that shows how to generate the headers (which is essentially trivial, anyway) and combine the results to get a complete file. I'm tending toward MIME::MultipartAlternative. Once the headers are removed, I'm not sure there is anything mail-specific about the body (but I'd have to go poke around some RFCs to be sure). I'll look at MIME::Tools and see if it maps to anything there. Thanks for the suggestion! James > > -austin