Hey,
I need to be able to export a spreadsheet as an htm file (which I have already done) and then using perl code have it automatically e-mailed, and placed into the body as html.
Essentially, I need my code to attach the entire file (which I have already accomplished), and then have this one specfic table displayed as html in the body of the e-mail.
So, I took the file, opened it and put it into an array, however now i'm not sure what to do.
In the beginning of my code I have:
open(Report, "Report.htm") || die("Could not open file!");
@data = <Report>;
chomp @data;
close(Report);
---------------------------------
Then later in my code, when I try and put this file into the body of the html, I was using:
$msg->attach(
Type =>'TEXT/HTML',
Data => while (<>) { join(' ', @data), "\n" },
);
however this doesn't work.
Any help would be greatly appreciated!
I need to be able to export a spreadsheet as an htm file (which I have already done) and then using perl code have it automatically e-mailed, and placed into the body as html.
Essentially, I need my code to attach the entire file (which I have already accomplished), and then have this one specfic table displayed as html in the body of the e-mail.
So, I took the file, opened it and put it into an array, however now i'm not sure what to do.
In the beginning of my code I have:
open(Report, "Report.htm") || die("Could not open file!");
@data = <Report>;
chomp @data;
close(Report);
---------------------------------
Then later in my code, when I try and put this file into the body of the html, I was using:
$msg->attach(
Type =>'TEXT/HTML',
Data => while (<>) { join(' ', @data), "\n" },
);
however this doesn't work.
Any help would be greatly appreciated!