use Net::Cmd;
use Net::Config;
-$VERSION = "2.28";
+$VERSION = "2.29";
@ISA = qw(Net::Cmd IO::Socket::INET);
sub auth {
my ($self, $username, $password) = @_;
- require MIME::Base64;
- require Authen::SASL;
+ eval {
+ require MIME::Base64;
+ require Authen::SASL;
+ } or $self->set_status(500,["Need MIME::Base64 and Authen::SASL todo auth"]), return 0;
my $mechanisms = $self->supports('AUTH',500,["Command unknown: 'AUTH'"]);
return unless defined $mechanisms;
Net::SMTP attempts to DWIM with addresses that are passed. For
example an application might extract The From: line from an email
-and pass that to mail(). While this may work, it is not reccomended.
+and pass that to mail(). While this may work, it is not recommended.
The application should really use a module like L<Mail::Address>
to extract the mail address and pass that.
-If C<ExactAddresses> is passed to the contructor, then addresses
+If C<ExactAddresses> is passed to the constructor, then addresses
should be a valid rfc2821-quoted address, although Net::SMTP will
accept accept the address surrounded by angle brackets.