When facing similar things, I use the smtp method of Mail::Mailer
(which depends on elements of the Net bundle).
The following example sends an e-mail composed from a terminal window.
Obviously you'd need to configure the variables to your situation.
print "\nTo: ";
$dest = <>;
print "Subject: ";
$subj = <>;
$body = <>;
$mailer = Mail::Mailer->new( 'smtp', Server => 'pilot.msu.edu' );
From => 'Mr Grits <firstname.lastname@example.org>',
To => $dest,
Subject => $subj,
or die "mailer->open failed: $!\n";
print $mailer $body;