Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error using MIME::lite

Tags:

mime

perl

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?

like image 440
shinjuo Avatar asked Mar 06 '26 01:03

shinjuo


1 Answers

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.

like image 179
Knut Haugen Avatar answered Mar 08 '26 20:03

Knut Haugen