in reply to SMTP authorisation for MIME emails.
... cut ... sub auth { my ($self, $username, $password) = @_; eval { require MIME::Base64; require Authen::SASL; } or $self->set_status(500,["Need MIME::Base64 and Authen::SASL to +do auth"]), return 0; ... cut ...
Humm, good! Implements a convenient, test to prevent error... (can be optimized, but it's good!)
I'm using this to send my test messages on authenticaded. .............
--
Marco Antonio
Rio-PM
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: SMTP authorisation for MIME emails.
by jdtoronto (Prior) on Aug 22, 2006 at 16:42 UTC |