I'm using Mail::Sender to send mail from Perl. I have a valid SMTP server (it works if I do a telnet). However, I get an error -6 on a MailMsg. The doc shows -6 as
local user $to unknown on host $smtp
What does this mean? Is it unable to locate the receiver?
my $rec=(new Mail::Sender)->MailMsg(
{smtp=>'smtp.example.net',
from =>'[email protected]',
to => '[email protected]',
msg => 'Hello'});