I'm wondering if I have to do something special before it gets stuffed in the database, but I don't think so.

As a general rule, you do not want to do something special before the database. You want to do something special before the email. When you need a particular encoding or alteration of your data for one use, you'll find yourself having to backtrack less often by doing that transformation as late and as local as possible.


In reply to Re^3: Converting carriage returns to HTML breaks by fullermd
in thread Converting carriage returns to HTML breaks by htmanning

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":