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

How do I debug FormMail?

Thus article details how to debug FormMail.

This example demonstrates the debug attribute, in case FormMail is not doing what you think it should. Try a demo.


<head><title>Just testing</title></head>
<form method="post" action="">
<h1>Example of FormMail 3.0</h1>
This is identical to example3, except that the config file
uses the <code><b>debug</b></code> option.  Therefore no mail
will be sent, and the html response will be more useful for
debugging, rather than for users.
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'>

 <!-- note the "debug" attribute.
      Otherwise this is identical to example3.

<form debug name="example5" >

 <!-- 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
   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:bug, mail, trouble, form   Doc ID:91740
Owner:Radhika R.Group:University of Illinois Chicago Technology Solutions
Created:2019-05-15 07:34 CSTUpdated:2019-06-13 10:51 CST
Sites:University of Illinois Chicago Technology Solutions
Feedback:  0   0