Is there a way to define from address with Mail::Send package.
I tried below
my $email = new Mail::Send;
$email->from('eTEC');
but it is giving below error.
Can’t locate object method “from” via package “Mail::Send” at
unix-mail1.pl line 11.
Regards#Mahesh
From looking at the source code, it doesn’t support
from(), which means it won’t support it in the constructor. You need toset()it manually which will be picked up and handled byMail::Mailer(part of the MailTools package) when you callopen().