Create Custom Transaction and Send E-mail

To complete this tutorial, follow the next steps:

  1. Open the index file in Dreamweaver.

  2. Check if a database connection has been already created. If not, create one now, as stated at the beginning of this tutorial.

  3. Start the Custom Form Wizard. You can access it from the MX Kollection tab of the Insert panel.

  4. Configure each step as shown below:

  5. You can save and preview the page in the browser now. It will display the form, and once the Insert Record button is pressed, the redirect will take you to the thankyou.htm page.


     

  6. However, the mail sending functionality is missing at this point. To add it, you must apply the Send E-mail server behavior, from the Server Behaviors tab -> + > MX Kollection -> Send E-mail.

  7. Configure the dialog box that opens as shown below:

  8. Save the page and upload it to the server. Preview it in the browser, and enter some data in the form, as in the example below:


     

  9. After you click the submit button, check the e-mail account set in the To field. You should have received a new message, similar to the following image:


     

If the e-mail message did not arrive properly, or there was an error message, you might consider checking the Mail Server Settings in the InterAKT Control Panel, from the MX Kollection tab of the Insert Panel. Also, if the message appears not to have the correct format (e.g. no line breaks, all text appears on a single line), you should check the Send E-mail server behavior > Options tab and switch between HTML and Text only message format.

 

You can further improve the form, by adding fields or using a table to store relevant data.