I have a question about perl and need your help.
I have a perl script which use MIME::Lite to send email to a mailbox server. Here are some lines:
$mime_msg = MIME::Lite->new(
From => 'firstname.lastname@example.org',
To => 'email@example.com',
Subject => 'test',
Type => 'text/html',
Data => $message);
This program works fine. But after I install module
MIME::Parser for retireving attachment. Accurately say after installing MailTool (when I run perl script, I was asked to insatll MailTool), the above lines can not go through. I got the error:
"unrecognised line: 'firstname.lastname@example.org' (eval 8) at line 6."
Also I got such error when I run my perl script:
v-string in use/require non-portable at
Anyone has an idea about this problem?
Thanks in advance!
Edited by Chady -- added code tags, and some formatting.