Add A Subject And Body Text To A HTML Mailto Command

Written by Allen White on. Posted in Web, Web Browsers

This is not really my sort of thing but I noticed that when companies  have enquiry email addresses they sometimes automatically fill the subject field in the email and sometimes even fill part of the email body out. I was wondering how they did this so had a dig into it.

So normally you use the command below to email Allen.white@techieshelp.com making sure you open and close the command with < and >.

<a href="mailto:allen.white@techieshelp.com">Allen.white@techieshelp.com</a>

As you will see if you click on the email address above it will open up your mail client and populate the email field. To add a subject use the command below.

<a href="mailto:allen.white@techieshelp.com?Subject=Enter your subject here">Allen.white@techieshelp.com</a>

Now you will see that if you click on Allen.white@techieshelp.com you will see that the subject field is populated.

Finally, if you would like to add content to the body of the email use the command below.

<a href="mailto:allen.white@techieshelp.com?Subject=Enter your subject here&body=whatever txt you want in the body">Allen.white@techieshelp.com</a>

So now when you click on Allen.white@techieshelp.com you will see the body and field is pre populated in the email

 
 

Related Problems

Send an Email from Command Line / Telnet
If you do not have an email client to hand you can send an email via the command line telnet command. Follow this guide on how to send an email ...
READ SOLUTION
IT Tutorials
Step by step guide on transfering you FSMO roles in GUI and command line.How to transfer FSMO roles from one server to another guide.
READ SOLUTION
Create a User and Mailbox in Powershell
A guide on how to create a user in powershell and how to create a mailbox in powershell step by step
READ SOLUTION
If you want to make your fields in excel pretty yhrn follow this guide on how to Make a Gradient, Translucent Chart in Excel
READ SOLUTION
Run Command Windows 7
Out of the box windows 7 does not have the hand run command on the start menu. here is how to turn on the run command.
READ SOLUTION
Find Your Fastest External DNS Server – Speed Up Web Browsing
A guide on how to find the fastest DNS server for your pc or server and speed up downloads and web browising.
READ SOLUTION
Non Exchange Users Showing In Global Address List (GAL)
When browsing the Global Address List you see users who do not actually have mailboxes and are not contacts or mail enabled. These can be removed with a quick edit ...
READ SOLUTION
You can power off your virtual machines from command line. Here is a step by step guide on how to do this.
READ SOLUTION
Send an Email from Command Line / Telnet
How To Transfer FSMO Roles, Graphical And Command
Create a User and Mailbox in Powershell
Make a Gradient, Translucent Chart in Excel
Run Command Windows 7
Find Your Fastest External DNS Server – Speed
Non Exchange Users Showing In Global Address List
Power off / Restart a VM – Command

Tags:

Allen White

Allen is a Technical Consultant for an IT company in the North East of England and holds the following accreditations. MCSA, MCSE, MCTS, MCITP, CCA, CCSP, VCP 4,5 and HP ASE, AIS - Network Infrastructure. Backup Academy Certified. I run this site in my spare time so if I help you then PLEASE take the time to share using the share tools on the site.

What Do You Think?

Search Solutions

Categories

(c) Techieshelp.com. Please be aware, all information is provided freely, any information used is done so at your risk and Techieshelp will not be held responsible for any issue that may occur.