If you're lucky, the email application uses a template to display its output, in which case you can just update the template to look like the rest of your site.

The more annoying (and more likely) scenario is that the script is just directly printing HTML to the browser. In that case, the best way is to modify it to use some kind of templating system, then create an appropriate template. That way when your site changes in the future, you have an easier job ahead of you. Easier in the short-term would be to just change what it prints to match the rest if your site.

Another thought: There are lots of form mail scripts available; if the script you have is difficult to configure to display how you'd like, it may be easier to switch to one that's easier to configure.

One more thought: Make sure that, whatever you're doing, your form mail script can't be used to send spam. Otherwise pammers will eventually find it and make a horrible, horrible mess.


In reply to Re: Formatting Perl output by sgifford
in thread Formatting Perl output by pshives19

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.