Preload subject and body when offering an email URL

You can easily add a link in your ASP and ASP.NET pages that, when clicked, runs the default mail program (e.g. Outlook) and allows the user to send a message to the email address you provide:

Click here to send a message

Interestingly, you can preload other fields in the email message by appending arguments to the query string:

Click here to ask for tech support

Here’s how the above link appears to users. Click on it to see what happens in your mail program:

Click here to ask for tech support

You can also use the CC and BCC fields, as in:

Click here to ask for tech support

Notice that all the links above should be entered on a single HTML line.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: