devxlogo

Preload subject and body when offering an email URL

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.

See also  Why ChatGPT Is So Important Today
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist