tags:

views:

42

answers:

1

I dont know if this error is specific to MIME::lite but I am getting it while I am trying to use smtp email with MIME.

No SASL mechanism found
 at C:/Perl/site/lib/Authen/SASL.pm line 77
 at C:/Perl/lib/Net/SMTP.pm line 143

What does this error mean?

+4  A: 

I would guess the smtp server you're trying to contact is configured to use authentication of some sort and MIME::Lite is trying to use SASL (http://asg.web.cmu.edu/sasl/) under the hood. At least something is triggering SASL and you don't seem to have the right perl modules for it. The documentation for Authen::SASL mentions Authen::SASL::XS and Authen::SASL::Perl depending on your setup, the latter being pure perl and probably easier to run on windows. Below these two are the actual mechanism implementations e.g. Authen::SASL::Perl::CRAM_MD5 which also need to be in place.

It would be easier to debug if you included some initialization code for the libraries.

Knut Haugen
What do you mean include initialization code for the libraries?
shinjuo
these?use strict;use WWW::Mechanize;use LWP;use MIME::Lite;
shinjuo
No, the code you use to set up the objects you create supported by these modules.
Knut Haugen