How do I format email in FormMail?
This article details how to format email in FormMail.
In this example, FormMail is configured to generate formatted email. Try demo.
<html> <head><title>Just testing</title></head> <body> <form method="post" action="http://tigger.uic.edu/htbin/cgiwrap/bin/formmail/FormMail/depts/accc/forms/formmail/example-3.txt"> <h1>Example of FormMail 3.0</h1> This example shows the use of mail formatting. It is also a live form - if you submit, I will receive mail. That's ok, just make sure it contains something interesting. <hr> <p> My email address is: <input type="text" name="email" > <p> FormMail 2.0 is such an improvement over 1.0 that:<br> <input type=radio name="radbut" value="socks"> My socks were knocked off!<br> <input type=radio name="radbut" value="chair"> I fell of my chair.<br> <input type=radio name="radbut" value="big deal"> What's the big deal? Just use postcards. <br> Free-form comments, if you like; <textarea name=comments rows=5 cols=60> </textarea> <hr> <input type="submit" value="Submit your comments"> </form> </body> </html>
<!DOCTYPE form SYSTEM 'FormMail-3.0.dtd'> <form name="example3" > <!-- I really want your email address --> <validate name="email" public="Your email address" vtype="email"> <!-- Mail will indeed be sent. Note that I capture your email address above and put it in the Reply-to field, so I can easily reply to notes sent to me from this form. --> <mail name="mail1" > <to>email@example.com <reply-to>$email <Subject> FormMail 2.0 comments <body> $fm_date web form: $fm_referer Radio button is: $radbut Comments were: $comments </mail> <!-- Here's the html response header Note that the full html page is generated, including the <html>...</html> tags --> <response name="r0" > <![CDATA[ <html><head><title>Test</title></head><body> <h1> Thank You for Submitting your Comments</h1> <P> I hope I find them useful. :-) <p> -Bob </body></html> ]]> </response> </form>