The SMTP actions
Up ]

 

The "SMTP" 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 SMTPC action performs the same function, but clears the stack after processing.

The recipient E-Mail address is encoded as part of the action. The mail server that will be used is specified as part of the Compiler Options dialog. (Hint - some 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="POST" Action=SMTP?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 on the page this action is on.

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

You should also review the Compiler Options dialog where details of how you can encrypt the data resulting from Form Processing is discussed.