in reply to Mail::Sender - authentication and design questions
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.
This gets called bysub 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; }
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?if ($receipt_by_email) { defined $email ? send_receipts($email, $descr, &is_work_late($assign)) : aquire_email_info($regno, $assign); }
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Mail::Sender - design
by Jenda (Abbot) on Mar 26, 2002 at 18:39 UTC |