CodeCharge Studio

Creating a MailTo Hyperlink

Description

This example shows how to create a MailTo hyperlink and run a client email system.

  1. Click on the Link or Image Link icon in the Forms tab of the ToolBox to add the control.
  2. Click on the Control Source property and select a database column to specify the visible text
  3. Click on the Href Source property and select a database column to specify the hyperlink.
  4. Modify the HTML code as shown below:
<a href="mailto:{email_Src}">{email}</a>

See how to configure a hyperlink, if you want to modify a hyperlink dynamically.

Mailto syntax

Syntax

<a href="mailto:<address>[&subject=<subject text>][&body=<body text>][&cc=<cc address>][&bcc=<bcc address>]">

Possible Values

Keyword Description
Address Required. Specify one or more valid e-mail addresses separated by the semicolon using only the Internet-safe characters, for example '%20' for the space character.
Subject Optional. Specify the text to appear in the subject of the email message.
Body Optional. Specify the body of the email message.
CC Optional. Specify the email addresses to be entered into the 'CC' (Carbon Copy) section of the email message.
BCC Optional. Specify the email addresses to be entered in the 'BCC' (Blind Carbon Copy) section of the email message.

Example

The example below shows how to build a link to send an email message.

<A HREF="mailto:{email_Src}&subject=Feedback">{mail}</A>

See also

How to dynamically Modify a Hyperlink


On-line, printable versions and updates