Thanks Frank,

Actually it was reading about Mime::Lite::TT::HTML on your excellent tutorial which inspired the question!

I have a framework similar to TT and the like, so I'm thinking of creating something like the above module which handles all the Unicode stuff, and which allows subclassing for use with different templating systems and frameworks. Something like Mime::Lite::Template::<your_framework_here>

I've finally sorted myself out with a PAUSE account so I'll be scouting around for the ideal namespace at some point. I'll be discussing off-list with Jonathan Vanasco so do butt in if you're keen to contribute.

I like your idea of submitting it to a different mp process, might well be some mileage there - an email submission module with subclasses for different submission methods perhaps. I was using Net::SMTP to send to a local relay, but found it could get stuck on DNS lookups for address verification.

cheers
John


Frank Wiles wrote:
On Mon, 18 Jun 2007 16:51:18 +0100
John ORourke <[EMAIL PROTECTED]> wrote:

Hi folks,

I'm wondering what modules people use for sending email?  At the
moment I'm using MIME::Lite but I'm doing several things myself which
a bigger module might do for me:

 - header encoding - I can't find any modules which will Q- or
B-encode headers that have the UTF-8 flag set

 - UTF-8 detection on the body to set mime type

 - sending with feedback - I'm using Net::SMTP so I can capture
result codes and give a variety of error messages instead of just
'failed'. Currently the biggest prob with this is potentially
delaying page delivery due to timeouts.

  Not sure that this helps with your UTF issues, but I've recently
  started using MIME::Lite::TT and MIME::Lite::TT::HTML and love
them. Wrote a quick tutorial on using them at:
  http://www.revsys.com/writings/perl/sending-email-with-perl.html

  As others have pointed out you can delay page loading by using
  Net::SMTP to a remote system.  However, if you say have 5
  web servers and one SMTP server on your network, there shouldn't
be any real delay. It's when you have to connect up to smtp.distant-other-country.com that you'll run into serious problems.
  Safest thing to do is submit your message to another process
  in mp and have it handle the actual sending, returning errors,
  etc.  Be it in a queue in some DB or just a simple daemon that
handles it. Hope this helps.

Reply via email to