Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Is there any way to send HTML table information

by hacker (Priest)
on Mar 14, 2007 at 04:16 UTC ( [id://604735] : note . print w/replies, xml ) Need Help??

in reply to Is there any way to send HTML table information

Keep the HTML on port 80 and the SMTP on port 25 please. We have enough trouble with people misusing email already.

Many people are stripping HTML out of email anyway, server-side, with milters and other tools, because of the dangerous nature of malware, web-bugs and other malicious "crumbs" that find their way through HTML-laden email.

There's no way to reliably guarantee that the recipient is going to be displaying the email in the way you intend. Are they using Outlook? pine? mutt? Evolution? KMail? Other?

The right way to do this, is to use Text::xSV, Text::CSV, Spreadsheet::WriteExcel or similar modules. Send the data across in a way that can be used on the other side, and not just displayed in a browser on the other side.

If you must display HTML (and please, please please validate it!), just send the URL in an email, where the reader can launch it in their browser of choice to display it.