The SMTP actions
Home Up The STACK actions The SMTP actions The MAPI actions The FILE actions The PRINT actions Credit Card Validation The GENERATE Actions

 

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

[email protected]

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

FORM Method="POST" [email protected]+thanks.htm

You can also add a target frame name to the redirection page if you are using Frames by enclosing the frame name in brackets at the end, so if for example you wanted the redirection page to appear in a frame called "main" you would need to specify 

FORM Method="POST" [email protected]+thanks.htm(main)


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.