I have my html code inside my array
@array //contains all HTML table code
I want to send an e-mail that sends this html code through and converts into the HTML table it is meant to be (not just html code text)
$to = 'my@email.com';
$from = 'my@email.com';
$subject = 'Test';
@message = @array;
open(MAIL, "|/usr/sbin/sendmail -t");
# Email Header
print MAIL "To: $to\n";
print MAIL "From: $from\n";
print MAIL "Subject: $subject\n\n";
print MAIL "Content-type: text/html\n";
# Email Body
print MAIL @message;
close(MAIL);
print "Email Sent Successfully\n";
}
Right now this sends me an e-mail with all the html code as just lines of code and text, however I want it to convert into the html table as it does normally. I tried using MIME but could not get it to work. Help would be greatly appreciated.