I’m trying to use Perl to send an email message. Basically I have a Perl script that prints out a report in a nice format. I want that report to be sent via email. How can I
If the machine does not have sendmail configured, I typically use Mail::Sendmail
use Mail::Sendmail; %mail = (smtp => 'my.isp.com:25', to => 'foo@example.com', from => 'bar@example.com', subject => 'Automatic greetings', message => 'Hello there'); sendmail(%mail) or die;