http://qs1969.pair.com?node_id=147274

z3d has asked for the wisdom of the Perl Monks concerning the following question:

It's late, and tomorrow I may look at this post and hit my forehead with the laptop, but I was wondering if anyone out there might be able to point me to any (c|s)ites for sending mail with Perl without resorting to a system command (i.e., no sendmail, no mail/Mail/mailx). If this works in win32, great, but that's not a deliminating factor. Thanks!

z3d



"I have never written bad code. There are merely unanticipated features."

Replies are listed 'Best First'.
Re: Pure Perl mailing for CGI?
by z3d (Scribe) on Feb 25, 2002 at 06:28 UTC
    So 30 odd seconds later and a few pages into search.cpan, I find Mail::Sender. I still leave this open for comments - can't hurt, right?



    "I have never written bad code. There are merely unanticipated features."
Re: Pure Perl mailing for CGI?
by ask (Pilgrim) on Feb 25, 2002 at 09:58 UTC
    Look for the Net::SMTP module (which is what Mail::Sender uses too). It might give you a bit more control of what's going on, error handling and such.

     - ask

    -- 
    ask bjoern hansen, http://ask.netcetera.dk/   !try; do();
    
      Net::SMTP works just fine on Win32 as well, might I add (since it was a wish). You do need some SMTP server that you are allowed to send via, is all.
      You have moved into a dark place.
      It is pitch black. You are likely to be eaten by a grue.