Creating the script

Step 1: If you are using a separate mailbox, select 'E-mail automation' from the 'Configure' menu. Select the mailbox to which the form output will be e-mailed.

SMTP version only:

If you have Emailrobot for SMTP, you must now add the mailbox that Emailrobot should scan. Click 'Add' and specify mail server name, mailbox name, mailbox password and download interval.

After you have specified the mailboxes that Emailrobot should download, click 'OK' to proceed to create a task to process the e-mail.

Step 2: Start up the Inbound Script Wizard, by selecting 'Add Inbound Script' from the 'Task' menu in the 'Emailrobot Task Manager.

Step 3: Add all the fields that you have used in the Web form. To do this correctly, you must know how your Web form is going to store each e-mail field. For example, the visitor's name might be stored as name:. In this case, enter 'name' as the field name, and as the field identifier, enter 'name:'.

This will cause Emailrobot to look for a string 'name:'. When it finds this string, it will assume that the text after that 'tag' is actually the name of the visitor. Repeat this for each field that you have used in your Web form. When you are finished, select 'Next'.

Step 4: If the mailbox you are using is used for other e-mail also, you will have to specify how Emailrobot will identify a particular e-mail from a Web-form. This can be done by having the Web form send the e-mail to a particular e-mail-address (if you use an alias you would not need to set-up a separate POP3/Exchange mailbox), or by using a unique subject line.

If you used a unique subject line, you must add the condition:

"If - Email.subject is equal to Your unique subject"

If you used a separate e-mail address, you must add the condition:

"If - E-mail.to is equal to Your unique email address/alias"

Step 5: Select the database you wish the data to be imported to. If you do not have a database and do not wish to create one, you can use the sample database included with Emailrobot in the database subdirectory. Select the database to which you wish to archive the form output. Remember to set it up as an ODBC data source first!

Step 6: Specify which e-mail fields you wish to import into which database fields. If you are using our sample database, select the 'Email.To' field, and then select the 'To' field from the database fields List box. Then select the 'E-mail.CC' field and select the database field 'CC'. Do this for all e-mail fields.

Step 7: If you wish to send an auto reply you can specify one here.

Step 8: If you wish the Web form e-mail to be forwarded to another mailbox, you must enter the e-mail address here.

Step 9: Give the script a name and enter the file name to save the script in the Prgram Files\ERobot\scripts\files directory.

After creating the script, the Inbound Script Wizard will automatically start up the Task properties dialog. The Task properties dialog allows you to specify when the Emailrobot should run your script (=Task). You can specify to run it manually (From the menu Task, run now), each time e-mail is downloaded, or at scheduled intervals. After configuring, when you wish Emailrobot to run the script, click 'OK'. Your task will now be listed in the main window of the 'Emailrobot Task Manager'.


(Contents)(Previous)(Next)