The EMail Action


The "Email" action saves the results of the current form to the stack. The current content of the stack is then sent via SMTP E-Mail to a specified E-Mail address. The EmailC action performs the same function, but clears the stack after processing.

The recipient E-Mail address is encoded as part of the Email action. The mail server that will be used can be specified as part of the Compiler Options dialog. (Hint - most mail servers are public - you may not need to set one up yourself - experiment a little :-)). The HTML page to jump to after the E-Mail is complete may also be specified after a + sign.

Specify this action as the ACTION parameter of the FORM tag. For example, to specify that you want to e-mail results to the address

john.doe@somewhere.com

when the user submits the form, and then jump to the thanks.htm page specify

FORM Method="get" Action=Email?john.doe@somewhere.com+thanks.htm

The user must have an already active TCP/IP connection when they submit the form, which you may want to mention somewhere in your HTML.

The information is returned in "Name=Data" pairs. For example

Name=Peter Piper
Address=1, The Causeway
Address=Smalltown, SomewhereVille
Address=Lower Bogotwana
Telephone=001 123 456 7890
WouldLike=Catalog