MIME::Lite
can pass extra parameters to Net::SMTP
constructor.
Version MIME::Lite
3.030 does not include SSL
on its list of passed Net::SMTP
parameters.
Is it possible to change it without modifying MIME::Lite
source code?
1 package MIME::Lite;
...
355 $VERSION = '3.030';
...
2843 my @_net_smtp_opts = qw( Hello LocalAddr LocalPort Timeout
2844 Port ExactAddresses Debug );
....
2847 sub __opts {
2848 my $args=shift;
2849 return map { exists $args->{$_} ? ( $_ => $args->{$_} ) : () } @_;
2850 }
....
2852 sub send_by_smtp {
....
2876 my %opts = __opts(\%args, @_net_smtp_opts);
2877 my $smtp = MIME::Lite::SMTP->new( $hostname, %opts )
2878 or Carp::croak "SMTP Failed to connect to mail server: $!\n";