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

Hi,

I'm using the Mail::Sendmail module and soon I'll be facing a small problem... My SMTP will require authentication.

Is there a way to code this into the module or my perl script?

Thanks,
Ralph.

Replies are listed 'Best First'.
Re: SMTP Authentication with Perl
by valdez (Monsignor) on Sep 14, 2002 at 22:30 UTC

    I prefer to use Mail::Sender which can handle authentication. If you must use Mail::Sendmail, grab this module and study how the author did for implementing authentication.

    HTH, Valerio

Re: SMTP Authentication with Perl
by rob_au (Abbot) on Sep 15, 2002 at 00:31 UTC
    In addition to the direction to look at Mail::Sender module given above, there is a module of code in the catacombs of this site which adds SMTP authentication to the Net::SMTP module - This code can be found here.