The standard email link (
In the example above, the mail form will load with "Catalog Request" in the subject line. Notice the question mark symbol (?) after the email address. This is required to separate the address from the subject text.
To expand this technique further, you can add a CC address:
This example will pre-fill the CC address with the email address of the sales manager. You can take this even further by including BCC. Notice the ? separates the CC address from the TO address but an ampersand (&) is used to separate the subject from the CC address. This is required syntax. The ? is used only to separate values from the TO address; the & separates the other values.
The last value example is BODY. It does just what it sounds like; it lets you pre-fill the email?s body text.
One additional feature to be aware of is hex encoding. The above examples could be written with the space between Catalog and Request defined as hex (%20 is hex for a blank space). I recommend this approach because it guarantees that you will get the space, whereas using just a blank leaves the coding open to interpretation by the user's browser, which may or may not render the space. As with all HTML programming, these techniques can be browser- and browser version-specific.
Here is the first example, recoded with hex encoding:
In the next example, the %20 is hex for a space; %0d%0a represents a line feed; and %21 is an exclamation point.
Any hex code could be inserted into the subject or body via this approach. Experiment on your own and see.
Jeff Kinzer
Editor's note: Jeff uses this technique with Microsoft Outlook. It does not work with all email clients.
LATEST COMMENTS
MC Press Online