Topics Map > Communication & Collaboration > Email & Calendaring
Topics Map > Communication & Collaboration > Website Services

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.


<head><title>Just testing</title></head>
<form method="post" action="">

<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.

My email address is: 
<input type="text" name="email" >
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>

<input type="submit" value="Submit your comments">

Configuration file

<!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" >
  <Subject> FormMail 2.0 comments
	web form: $fm_referer
   Radio button is: $radbut

   Comments were:  $comments

 <!-- Here's the html response header 
      Note that the full html page is generated, including
      the <html>...</html> tags 

<response name="r0" >
<h1> Thank You for Submitting your Comments</h1>

<P> I hope I find them useful. :-)


Keywords:code, form, mail, configure   Doc ID:91741
Owner:Radhika R.Group:University of Illinois Chicago Technology Solutions
Created:2019-05-15 07:39 CSTUpdated:2019-06-13 10:51 CST
Sites:University of Illinois Chicago Technology Solutions
Feedback:  0   0