Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: MIME::Lite error => SMTP auth() command not supported on smtp.gmail.com

by keszler (Priest)
on Sep 14, 2011 at 00:17 UTC ( #925787=note: print w/ replies, xml ) Need Help??


in reply to MIME::Lite error => SMTP auth() command not supported on smtp.gmail.com

Is MIME::Base64 installed?

MIME::Lite->send('smtp'... uses Net::SMTP, which in its auth method does:

eval { require MIME::Base64; require Authen::SASL; } or $self->set_status(500, ["Need MIME::Base64 and Authen::SASL tod +o auth"]), return 0;

MIME::Lite code includes:

if ($smtp->supports('AUTH',500,["Command unknown: 'AUTH'"])) { $smtp->auth( $args{AuthUser}, $args{AuthPass} ) or die "SMTP auth() command failed: $!\n" . $smtp->message . "\n"; } else { die "SMTP auth() command not supported on $hostname\n"; }

It appears possible that the lack of MIME::Base64 could result in the error you're seeing.


Comment on Re: MIME::Lite error => SMTP auth() command not supported on smtp.gmail.com
Select or Download Code
Re^2: MIME::Lite error => SMTP auth() command not supported on smtp.gmail.com
by ted.byers (Scribe) on Sep 14, 2011 at 17:41 UTC

    Thanks.

    Yes, MIME::Base64 is installed.

    What else might be awry?

      In all of the MIME::Lite code that particular error message only appears once, as shown. Net::SMTP->supports('AUTH'... fails, that error is generated. So, why does it fail from the server when it succeeds on your workstation. Same Perl, same modules; time to look elsewhere. Is the server blocked from connecting to gmail.com? Since this is email, is something on your network redirecting email ports to local email servers?

      On the server, at a DOS prompt, try:

      > telnet smtp.gmail.com 25

      If you get a connection, you'll see something like 220 smtp.gmail.com.... If you can't connect, or get a local email server - there's your problem.

        Well then, the mystery deepens.

        Executing:

        telnet smtp.gmail.com 25

        produces the following output:

        220 mx.google.com ESMTP l71sm1167256yhj.15

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://925787]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (13)
As of 2014-12-26 17:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (172 votes), past polls