Pre-populating email links

October 8, 2009

A client wanted to have an email link, which would open Outlook and populate some of the email with boilerplate text. This was for an intranet, so email address security wasn’t an issue — I knew I could use a simple mailto link. Easy.

Except that I wanted some line breaks between parts of the message body. A bit of Googling and I found a solution that works! Here’s the syntax…

  • Link to email address: mailto:name@company.com (where you substitute ‘name@company.com’ with the real email address)
  • Subject line: ?subject=Subject line (substitute ‘Subject line’ with the real subject)
  • Message: &body=Message (substitute ‘Message’ with the real message)
  • Line breaks in the message body: %0A (that’s a zero, not an ‘O for orange’); use %0A%0A for two line breaks, %0A%0A%0A for three line breaks etc.)

Here’s an example:

Mailto syntax example

Mailto syntax example

And here’s how it looks in Outlook:

How it looks in Outlook

How it looks in Outlook

Please note: You can only have one ? in the string, so if you need to pre-populate the CC field, the Subject field, and the message body then do it like this:

mailto:name@company.com?cc=another.name@company.com&subject=Subject line&body=Message

Also, populating the Message Body will overwrite any automatic signature you have in Outlook. You will have to re-insert your signature manually.


  1. thanks this helped

  2. Absolute gold. Thanks mate

  3. Brilliant. Just what I needed.

  4. I don’t know how long its going to take the IT team at my company to answer this, thank you! This just saved me a lot of time hearing …”this is a unusual question…” with no real response!

  5. How do you handle long email body text. My email body gets truncated. Thanks !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: