I don't know if you can do anything with conventional modules per se... working primarily on Windows, I don't know fork either... but I had a similar problem and in the hope of it helping you get an idea, I'll pass it on...

Write everything you need to send the mail to offline storage... For example, to a file(s), or to a database. Then, have a script running in tbe background that periodically wakes up, checks for new messages, sends the mail off, and goes back to sleep again...

This way, your users need to wait until their message is recorded in permanent storage, and then they can be away to other places...

When I did this, I gained other advantages, such as better auditing, failsafe response to the mail server being down for maintenance.. Obviously this works only if some delay between the user clicking "send mail", and actually sending the mail to the SMTP server is tolerable... YMMV
HTH


In reply to Re: Spawning an Independant Process by tinman
in thread Spawning an Independant Process by Keef

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.