A client has asked us to set up a personalised opt-in mailing system on a remotely-hosted web server. We are confident there are no spam issues here, however I am concerned about the technical side.

1. The only way I know to generate personalised emails from Perl is to launch a separate copy of SendMail for each mail. The last thing I want to do is bring down the server by launching 1000+ copies simultaneously. Is there a way to achieve our objective that avoids this risk?

2. Am I right in thinking that once a Perl script is launched from a web client, the client must stay connected for the script to continue? I am concerned about the usability of a system that requires someone to wait at a computer screen until a possibly lengthy process is complete. This would be especially so if the solution to Q1 is to intersperse sleep commands between small batches of emails. Any ideas?

I did a search of the archives before posting this question and ended up downloading Mail::Bulkmail. I think maybe it is the answer, but I couldn't understand whether, in MailMerge mode, it still suffers from the same problem or not.

In reply to Personalized emails with SendMail by Elliott

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.