Subject: | SMTP issue still exists in v1.72 |
I am now using v1.72
I used the following script to test smtp function.
#!/usr/bin/perl
use strict;
use warnings;
use Mail::Mailer;
my %headers = (
'To' => 'from@example.com',
'From' => 'to@example.com',
'Subject' => 'working?'
);
my $server = 'smtp.example.com';
my $mailer = new Mail::Mailer 'smtp', Server => $server;
$mailer->open(\%headers);
print $mailer "It is a test email\n";
$mailer->close();
,and also tried mail-mailer.pl in "example" folder. Finally I got the
follow result.
Warning: something's wrong at
/usr/lib/perl5/site_perl/5.8.7/Mail/Mailer.pm line 278.
and I cannot got the email.
Perl version : 5.8.7
OS : OpenSUSE 10.0 kernel 2.6.13-15-smp