check-email-loop icon indicating copy to clipboard operation
check-email-loop copied to clipboard

Using AUTH LOGIN with this Script

Open futureweb opened this issue 6 years ago • 1 comments

As we need AUTH LOGIN on some older Servers and struggled quite a long time to get it running with this Script ... here the Info if someone also needs it ... ;-)

Using "Net::SMTP_auth" (available on CPAN) one can easily use LOGIN Methode ... ;-) Info: https://www.perlmonks.org/?replies=1;displaytype=print;node_id=110334


$smtp = Net::SMTP_auth->new($smtphost, Timeout=>$smtptimeout, Port=>$smtpport, starttls=>1, Hello=>$smtpehlo, %other_smtp_opts);
               if( $smtp && $smtpuser )  {
                                    #print "Sending Mail through SMTP with TLS + AUTH!\n";
                                    $smtp->auth("LOGIN", $smtpuser, $smtppasswd);

bye from Austria Andreas Schnederle-Wagner

futureweb avatar Jul 18 '19 16:07 futureweb

Thank you Andreas for your feedback: I'll keep this issue open for reference or potentially other users.

setec avatar Aug 06 '19 12:08 setec