First of all, let me say I despise you for having the only mail module available for Windoze - hack, pththt - when I'd already written my program to use Mail::Mailer (I'm developing a Windows program under Unix. You gotta problem with that?). I have enough problems with OO as it is.

Aside from that, the module works fine just talking to a smtp server and I don't use authentication. The only complaint I have is that there is a lot of information in the docs, but it isn't all that clear as to what I could, or should, be doing with this module. /msg me if you want help.

Performance question: it takes me 5 to 10 seconds to read in an ascii string from a barcode scanner, do 3 Oracle queries and send a short email. Is there a way of making the email sub quicker, a sort of "fire and forget" routine?

This happens to be the code that gets called after I insert into the database, so that the little darlings get an email receipt for the work they've handed in.

sub send_receipts { <snip> $sender = new Mail::Sender {smtp => $Mailserver, from => 'CS Handin <kendal>'}; $sender->MailMsg({to => "$userid\@keele.ac.uk", replyto => $handin_manager, subject => 'Receipt for work handed in', msg => $body}); $sender->Close; }
This gets called by
if ($receipt_by_email) { defined $email ? send_receipts($email, $descr, &is_work_late($assign)) : aquire_email_info($regno, $assign); }
A good question to ask at this point is - Is this the Right Thing to Do? Am I taking a hit in speed by using the Windows machine to talk to the SMTP server on the Unix box?

Lastly, you need more jokes in the documentation. Perhaps, Man who runs behind car becomes exhausted. I'm sorry I won't see you at the next YAPC in Munich to harrass you somemore.

Ea
:wq


In reply to Re: Mail::Sender - design by Ea
in thread Mail::Sender - authentication and design questions by Jenda

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.