STEP SIX: Configuring the email files This step is fairly straight forward. It explains how the email template files are setup, and how you display data from the order/resellers form within the email.
ABOUT THE EMAIL FILE NAMES
The default files names are:
You may add/remove email template files as desired. Be sure to adjust the @array_emails setting in STEP THREE as needed.
WHERE TO PLACE THE EMAIL TEMPLATE FILES These email template files can be placed in the same directory as the placeorder.cgi. In the default setup, the settings are to look in a directory called emails, which is off the current directory that placeorder.cgi is in. This is useful as it reduced the number of files in the one directory. Simple create a directory called emails and upload the email template files there.
EDITING THE EMAIL TEMPLATE FILES The way the email template files are used is quite simple. Within each file are key fields, which are field found between square brackets ( [ .. ] , [FIRSTNAME], [LASTNAME]). Any valid field on the order/reseller form is a valid key. Simply take the field name, place in within the email as desired, and put the field name in square brackets. Example:
website NOTE: The word WEBSITE can be lower case also. The best way to learn how keys are used is to review the examples email template files (touser.txt, tosponsor.txt and tosupport.txt). Here is a list of the built/default keys [FIRSTNAME] user's first name These are the current built in keys. Any addition keys/fields on the order form should be added to the proper email template files as needed.
To tell the script where to send the email template file (what email address), edit the first line of the file. A typical email template file that is sent to the new user, from support would be (taken from the touser.txt file): To: "[FULLNAME]"
<[EMAIL]> The To: field is the key field for determining where the email template file will be sent. |