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

#!/fellow/monks.pl

G'day fellow monks,

I'm stuck with a particular problem. My ISP does not have Net::SMTP_auth installed, but I can use Net::SMTP. The man page does show some auth functionality with Net::SMTP, yet I can't seem to get it going. To be able to send email from my ISP's account, I need to use SMTP authentication, which is cool, but now I can't get Net::SMTP to authenicate.

Is there a way that I've perhaps missed where I can use Net::SMTP to do the authentication to the SMTP server for me, or could I just FTP the Net::SMTP_auth.pm file onto the server, and use that?

Thanks!

Thanks!

     |\/| _. _ _  ._
www. |  |(_|_>_>\/| | .net
                /
The more I learn the more I realise I don't know.
- Albert Einstein

Replies are listed 'Best First'.
Re: Auth with Net::SMTP
by idsfa (Vicar) on Apr 25, 2006 at 00:42 UTC

    Net::SMTP_auth is a pure perl module, so yes, you can just put it onto the server. Here is a good set of docs on how to do it.


    The intelligent reader will judge for himself. Without examining the facts fully and fairly, there is no way of knowing whether vox populi is really vox dei, or merely vox asinorum. — Cyrus H. Gordon
Re: Auth with Net::SMTP
by bowei_99 (Friar) on Apr 25, 2006 at 05:54 UTC
    Are you tied to Net::SMTP? I've had pretty good experience with Mail::Send, as well as other modules in that suite, like Mail::Mailer. Although, I'm guessing your smtp server requires authentication, so have you tried running it with the debug option? This is from the Net::SMTP docs:

    $smtp = Net::SMTP->new('mailhost', Hello => 'my.mail.domain' Timeout => 30, Debug => 1, );

    Also, I'd think you could try telnetting to the mailhost on port 25, and seeing if it responds properly.

    -- Burvil