in reply to Autentication problem with MIME::Lite

It works fine with the latest version of MIME::Lite (3.021)

C:\> type test.pl use MIME::Lite; my $smtp_server = 'smtp.example.net.au'; my $from = 'tachyon@nowhere.com'; my $to = 'nobody@nowhere.com'; my $pass = 'example'; my $msg = MIME::Lite->new( From => $from , To => $to , Subject => 'test', Data => "test" ); $msg->send( 'smtp' , $smtp_server , AuthUser=> $from , AuthPass=> $pas +s , Debug=>4 ); print map {s!/!::!g; s/.pm$//; sprintf "%-20s %s\n", $_, ${"${_}::VERS +ION"} } sort keys %INC; C:\>perl -v This is perl, v5.8.8 built for MSWin32-x86-multi-thread (with 18 registered patches, see perl -V for more detail) [snip] C:\>test.pl MIME::Lite::SMTP>>> MIME::Lite::SMTP MIME::Lite::SMTP>>> Net::SMTP(2.30) MIME::Lite::SMTP>>> Net::Cmd(2.27) MIME::Lite::SMTP>>> Exporter(5.60) MIME::Lite::SMTP>>> IO::Socket::INET(1.31) MIME::Lite::SMTP>>> IO::Socket(1.30) MIME::Lite::SMTP>>> IO::Handle(1.27) MIME::Lite::SMTP=GLOB(0x1b62138)<<< 220 outbound.icp-qv1-irony-out4.ex +ample.net.au ESMTP MIME::Lite::SMTP=GLOB(0x1b62138)>>> EHLO localhost.localdomain MIME::Lite::SMTP=GLOB(0x1b62138)<<< 250-outbound.icp-qv1-irony-out4.ex +ample.net.au MIME::Lite::SMTP=GLOB(0x1b62138)<<< 250-8BITMIME MIME::Lite::SMTP=GLOB(0x1b62138)<<< 250-SIZE 31457280 MIME::Lite::SMTP=GLOB(0x1b62138)<<< 250-AUTH PLAIN LOGIN MIME::Lite::SMTP=GLOB(0x1b62138)<<< 250 AUTH=PLAIN LOGIN MIME::Lite::SMTP=GLOB(0x1b62138)>>> AUTH PLAIN [blah] MIME::Lite::SMTP=GLOB(0x1b62138)<<< 235 Authentication succeeded [snip] Authen::SASL 2.10 Authen::SASL::Perl 1.05 Authen::SASL::Perl::LOGIN 1.03 Authen::SASL::Perl::PLAIN 1.04 Carp 1.0701 Config Email::Date::Format 1.002 Errno 1.1 Exporter 5.60 Exporter::Heavy 5.60 Fcntl 1.06 File::Basename 2.76 File::Spec 3.25 File::Spec::Unix 1.5 File::Spec::Win32 1.6 FileHandle 2.01 IO 1.23 IO::File 1.14 IO::Handle 1.27 IO::Seekable 1.1 IO::Socket 1.30 IO::Socket::INET 1.31 IO::Socket::UNIX 1.23 MIME::Base64 3.07 MIME::Lite 3.021 MIME::QuotedPrint 3.07 MIME::Type 1.19 MIME::Types 1.19 Mail::Address 1.77 Net::Cmd 2.27 Net::Config 1.1001 Net::SMTP 2.30 SelectSaver 1.01 Socket 1.79 Symbol 1.06 Time::Local 1.17 XSLoader 0.08 constant 1.08 integer 1.00 overload 1.04 re 0.0601 strict 1.03 utf8 1.06 vars 1.01 warnings 1.05 warnings::register 1.01

Replies are listed 'Best First'.
Re^2: Autentication problem with MIME::Lite
by lepetitalbert (Abbot) on Apr 21, 2008 at 12:51 UTC

    Hi Monks

    Yes it does :)

    Thank you Anonymous Monk ! and tachyon-II.

    have a nice day.

    "There is only one good, namely knowledge, and only one evil, namely ignorance." Socrates
      Hello There, I am new to PerlMonks so hello to everyone, I would like to ask your help with a auth problem which looks similar to this threat, So running the example above
      use MIME::Lite; my $smtp_server = 'mail.seerver.cz'; my $from = 'user@seerver.cz'; my $to = 'somewhere@outside.cz'; my $pass = 'p4ssword'; my $msg = MIME::Lite->new( From => $from , To => $to , Subject => 'test', Data => "test" ); $msg->send( 'smtp' , $smtp_server , AuthUser=> $from , AuthPass=> $pas +s , Debug=>4 ); print map {s!/!::!g; s/.pm$//; sprintf "%-20s %s\n", $_, ${"${_}::VERS +ION"} } sort keys %INC;
      I get this
      MIME::Lite::SMTP>>> MIME::Lite::SMTP MIME::Lite::SMTP>>> Net::SMTP(2.29) MIME::Lite::SMTP>>> Net::Cmd(2.26) MIME::Lite::SMTP>>> Exporter(5.58) MIME::Lite::SMTP>>> IO::Socket::INET(1.29) MIME::Lite::SMTP>>> IO::Socket(1.29) MIME::Lite::SMTP>>> IO::Handle(1.25) MIME::Lite::SMTP=GLOB(0x2086504)<<< 220 mail.seerver.cz ESMTP Postfix +(Deb ian/GNU) MIME::Lite::SMTP=GLOB(0x2086504)>>> EHLO mail.seerver.cz MIME::Lite::SMTP=GLOB(0x2086504)<<< 250-mail.seerver.cz MIME::Lite::SMTP=GLOB(0x2086504)<<< 250-PIPELINING MIME::Lite::SMTP=GLOB(0x2086504)<<< 250-SIZE 20971520 MIME::Lite::SMTP=GLOB(0x2086504)<<< 250-VRFY MIME::Lite::SMTP=GLOB(0x2086504)<<< 250-ETRN MIME::Lite::SMTP=GLOB(0x2086504)<<< 250-STARTTLS MIME::Lite::SMTP=GLOB(0x2086504)<<< 250-AUTH PLAIN LOGIN MIME::Lite::SMTP=GLOB(0x2086504)<<< 250-AUTH=PLAIN LOGIN MIME::Lite::SMTP=GLOB(0x2086504)<<< 250-ENHANCEDSTATUSCODES MIME::Lite::SMTP=GLOB(0x2086504)<<< 250-8BITMIME MIME::Lite::SMTP=GLOB(0x2086504)<<< 250 DSN MIME::Lite::SMTP=GLOB(0x2086504)>>> MAIL FROM:<user@seerver.cz> MIME::Lite::SMTP=GLOB(0x2086504)<<< 250 2.1.0 Ok MIME::Lite::SMTP=GLOB(0x2086504)>>> RCPT TO:<somewhere@outside.cz> MIME::Lite::SMTP=GLOB(0x2086504)<<< 554 5.7.1 <somewhere@outside.cz>: +Relay access denied SMTP RCPT command failed: 5.7.1 <pistoled@seznam.cz>: Relay access denied
      as shown above no authentication process happens at all, any ideas? this is what i get with the last command
      C:::Perl::site::lib::sitecustomize.p Carp 1.04 Exporter 5.58 Exporter::Heavy 5.58 Fcntl 1.05 File::Basename 2.74 File::Spec 3.12 File::Spec::Unix 1.5 File::Spec::Win32 1.6 FileHandle 2.01 IO 1.22 IO::File 1.13_01 IO::Handle 1.25 IO::Seekable 1.1 MIME::Base64 3.07 MIME::Lite 3.01 MIME::QuotedPrint 3.07 Mail::Address 1.77 SelectSaver 1.01 Symbol 1.06 XSLoader 0.06 re 0.05 strict 1.03 vars 1.01 warnings 1.05 warnings::register 1.01
      Thank for any tips in advance, Greets from CZ, Nikolas
        Hi! Did you solve this issue? I'm having exactly the same error. Thanks!