Overview
  Installation
  Configuration
  Advanced Usage
  Email Page Format
  Web Wise Sage

 

Advanced Usage

HTML Emails and and an Extra Drop-Down Box

To use HTML in your auto-responses, just go to the contactconfig.php file and change the value of $syshtml to be TRUE. Like this:

$syshtml = TRUE;

This will allow you to use HTML in your auto-response emails. Yes, they are called TXT files, but you can use HTML coding in those files.

Note that you can personalize either the text message or the HTML message. You can use these tags in the file:

[NAME]
[COMPANY]
[URL]
[EMAIL]
[PHONE]
[SUBJECT]
[BODY]
[NATURE]
[EXTRA]

And they will be replaced with info from the contact form, when the user submits it. (The [EXTRA] tag is discussed next....)

An Extra Drop-Down Box

You've seen how to setup auto-responses based upon the Nature of Contact drop-down box. You can also add your own customized drop-down box.  To do this, go to the contactconfig.php file and change the value of $sysextra to be TRUE.  Like this:

$sysextra = TRUE;

Then fill in the $sysfilename variable with the name of a file which contains the info you want to be displayed in your drop-down box. Like this:

$sysfilename = 'sysextra.txt';

Whatever you put in the sysextra.txt file, this gets displayed in the customized drop-down box, line by line, one after the other.  For example:

Texas 20.25
Georgia 30.50
Alabama 40.25

So if you put the above as the contents of the sysextra.txt file, then the resultant drop-down box will look like this:

 

Then assign a value to $sysdropdown as the label of the drop-down box. If you do this:

$sysdropdown = 'Shipping';

then the result will be:

  Shipping

 

OK, what happens with the above drop-down box? Whatever value the user chooses, that will be assigned to [EXTRA] so that wherever you put [EXTRA] in your sysyouremail.txt file, you'll see what the user chose when you get your notification email. You can also put [EXTRA] in any of the HTML (or plain text) auto-response messages that get sent to the user.

 

Now, let's look at how you can change the color and fonts on the Email Contact Form....

(Contact Page Format)