I need to send an email with xls file as attachment using perl. when I ran this below code,I got the following error
Connection error from localhost on port 25 ()
While googled this issue, it seems the SMTP server port is blocked. Could you please let me know how can I solve this issue.
The code is given below,
%mail = ( To => 'email@example.com',
From => 'firstname.lastname@example.org',
Message => "This is a very short message"
sendmail(%mail) or die $Mail::Sendmail::error;
print "OK. Log says:\n", $Mail::Sendmail::log;