Hi all,
In my evergoing quest to make my CGI scripts cross platform, I've moved the e-mail sending subs over to Net::SMTP (I used to use just sendmail, but the NT people weren't very happy :).
In testing though, I notice that there is a significant difference in performance when sending using Net::SMTP over piping to Sendmail. I assume this is because piping to Sendmail just puts the message in the mail queue, whereas Net::SMTP actually physically sends the mail.
So, my question is, to avoid the overhead:
- should I fork the sending? (up to 3 e-mails get sent per script execution though)
- should I create a local queue and an 'every 5 minutes cron job' to parse the queue and send?
- or has some else found a better way of dealing with cross platform mailers?
Input, as always, humbly welcomed.
cLive ;-)
ps - IANAL (I Am Not A Laccolith)
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.