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 =>'abc@example.com',
to => 'def@example.com',
msg => 'Hello'});
If you see the AUTHENTICATION part of the documentation of
Mail::Sender, it states that: