On Jun 18, 2007, at 11:51 AM, John ORourke 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.
cheers
John
John-
I use a custom module, but don't use any of the MIME stuff or UTF8 -
though I want to migrate. My module is very barebones, but fast
enough. if you'd like to collaborate on a solution, maybe that could
be a starting point.
In any event, I STRONGLY suggest dropping the Net::SMTP option. You
WILL delay page delivery, and consume mp resources. you also open
up your system to a DOS vulnerability -- a malicious person can
tarpit/teergrube mess with your server by having an email sent to a
machine that only accepts 1byte a second, and continually asks for
retransmission.
I always have mp pass stuff off to exim which handles all delivery.
to handle errors, you have 2 choices:
a- look at the python mailman distribution, which has config-
patches for all the popular mail systems , to do the receipt/ack/
error post-processing.
b- configure exim via an embedded perl interpreter ( exim has
mod_perl for its mta! mod_python too! ), and just log the messages
you analyze to sql.
email isn't instant. servers can be busy, servers can be
unreachable. let your MTA handle that. don't do that in mod_perl.
// Jonathan Vanasco
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - -
| CEO/Founder SyndiClick Networks
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - -
| Founder/CTO/CVO
| FindMeOn.com - The cure for Multiple Web Personality Disorder
| Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - -
| RoadSound.com - Tools For Bands, Stuff For Fans
| Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - -