Creating a subject line
Ever wonder how web sites automatically generate a subject line for their visitor in an email? You might be tempted to think its fancy programming logic, but that’s not the case. It’s really easy to do. Observe the following code:
<a href="mailto:you@domain.com?subject=Question about the site">Email Us!</a>
Using the anchor tag and mailto attribute we place a question mark (query string) at the end of the recipient email address and append this:
subject=Question about the site
This will automatically insert a subject line of our choice in the visitor’s preferred email client. Then we finish by giving the email link descriptive text and close the anchor tag.
If you have questions, contact me.