Accessibility
 
Home / Products / UltraDev / Support / Adding Dynamic Content
Dreamweaver UltraDev Icon Macromedia Dreamweaver UltraDev Support Center - Customizing Dreamweaver UltraDev
Creating dynamic e-mail links

Here is a dynamically generated list of names and e-mail addresses, displayed in a browser window.

When a user clicks an e-mail address, a new blank message window opens, using the mail program associated with the user's browser. In the e-mail message window, the To field is automatically updated with the address specified in the e-mail link.

The database table providing the above information contains four columns: ID, LNAME, FNAME, and EMAIL.

You can create a list of dynamic e-mail links by linking static or dynamic text to the values in the EMAIL table column and manually adding the mailto: attribute to the link's HTML code.

To apply a dynamic e-mail link to static or dynamic text:

1 Select the static or dynamic text that will serve as the link.
For example, you can select the data placeholder for e-mail addresses, or the static word "contact" in a repeat region.
2 In the Property inspector (Window > Properties), select the yellow folder icon.
The Select File dialog box appears.
3 Select Data Sources.

4 Expand the recordset by clicking the Plus (+) button to the left of the recordset, and choose the recordset column that contains the e-mail address values.
A recordset tag appears in the URL text box.

5 Type mailto: before the recordset tag. Do not enter a space after the colon.

6 Click OK.
Your page will now display dynamically generated e-mail links when viewed in a browser window.
You can follow this procedure to create dynamic URL links as well as e-mail links. If your database contains URL values (www.mydomain.com) instead of e-mail address values, type http:// (no space) in place of mailto: in step 5. Your page will display dynamically generated URL links when viewed in a browser window.

To Table of Contents