http://www.perlmonks.org?node_id=277389


in reply to Sending mail help

A few years ago we had a project that had to scan hundreds of thousands of IP addresses every four hours to see if they were online and then mail out the results which we wrote to a spreadsheet using Spreadsheet::WriteExcel

Mime::Lite became our best friend, appearing at the bottom of each script , sending out the results to all the folks who cared. I am not sure if this is fits what you are doing but if you are trying to send a message with the output of a program, this method of saving it to a file and then sending that file worked out well for us.

We were able to pretty much deploy our attempts with the example code provided so it might be worth your trouble to check out.