When invoking new Mail::Mailer for smtp, the keyword needs to be "Server", not "server". See line 15 of Mail::Mailer::stmp.pm. So this will work:
eval { my $mail = new Mail::Mailer ('smtp', Server=>$SERVER); $mail->open({ From=>$from, To=>$to, Subject=>$subject, }) or die ("Can't send email headers: $!\n"); print $mail $body; $mail->close(); };
In reply to Re: Sending out text mail
by tirwhan
in thread Sending out text mail
by lig
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |