![]() |
![]() |
The applet tag of the FormMail package defines the emailing and visual aspects of the applet, where the scripting language defines the components and their location within the form.A FormMail Applet Tag contains the following HTML tags:
- <APPLET CODEBASE="directory/" CODE="FormMail.class" WIDTH="pixels" HEIGHT="pixels">
Where:
- CODEBASE = the directory on the server where the FormMail .class file is located.
- CODE = always equals "FormMail.class".
- WIDTH = width of the form in pixels. You will need to adjust this value once the form is complete to get the optimal size.
- HEIGHT = height of the form in pixels. You will need to adjust this value once the form is complete to get the optimal size.
- <PARAM NAME=bgcolor VALUE="rrr,ggg,bbb">
Where the rrr,ggg,bbb value contains three integers between 0..255, separated by commas. These denote the red, green and blue values, respectively, for the color of the background. If you do not know the RGB value of the color you want, you should use a paint program like Corel Photopaint or Adobe Photoshop to locate them.
- <PARAM NAME=recipient VALUE="foo@bar.com">
Where the value contains the email address of the desired recipient.
- <PARAM NAME=subject VALUE="Subject Header Text">
Where the value contains the text you wish displayed in the email's Subject Header.
- <PARAM NAME=verify VALUE="true | false">
Using this parameter tells FormMail whether to validate input to the components that have their verify tags set to true.
- <PARAM NAME=debug VALUE="true | false">
Setting this parameter to true tells FormMail to echo pertinent form creation data to the java console. This is helpful when creating a form and want to know why it is behaving the way it is.
- <PARAM NAME=comment VALUE="Additional Comment">
If this tag is used, the text contained in the value will be appended to the end of the email message.
- <PARAM NAME=script VALUE="filename.extension">
This tag is mandatory. Without it FormMail does not know where to find the script that defines the form's components.