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. ------------------------------------------------------- Frank Wiles, Revolution Systems, LLC. Personal : [EMAIL PROTECTED] http://www.wiles.org Work : [EMAIL PROTECTED] http://www.revsys.com