title: Outlook handling of quoted url parameters in mailto link
body: <p>I'm attempting to populate the body of a mailto link with an html link.  The target browser is IE 7+ and mail client is Outlook 2007+.  Before I ask my question, i'll acknowledge the fact that the body parameter is intended for short text messages as called out here:</p>
  
  <p><a href="https://stackoverflow.com/a/4304779/573083">https://stackoverflow.com/a/4304779/573083</a></p>
  
  <p>and detailed here:</p>
  
  <blockquote>
    <p>The special "body" indicates that the associated is the body of the
    message. The "body" field value is intended to contain the content for
    the first text/plain body part of the message. The "body" pseudo
    header field is primarily intended for the generation of short text
    messages for automatic processing (such as "subscribe" messages for
    mailing lists), not for general MIME bodies. Except for the encoding
    of characters based on UTF-8 and percent-encoding, no additional
    encoding (such as e.g., base64 or quoted-printable; see [RFC2045]) is
    used for the "body" field value. As a consequence, header fields
    related to message encoding (e.g., Content-Transfer-Encoding) in a
    'mailto' URI are irrelevant and MUST be ignored. The "body" pseudo
    header field name has been registered with IANA for this special
    purpose (see Section 8.2).</p>
  </blockquote>
  
  <p>That being said, there have been a number of threads on SO with varying levels of success with inserting links in the body tag.  for example: <a href="https://stackoverflow.com/a/1455881/573083">https://stackoverflow.com/a/1455881/573083</a> and <a href="https://stackoverflow.com/a/9138245/573083">https://stackoverflow.com/a/9138245/573083</a></p>
  
  <p>My issue is similiar, but it is specifically with outlook rendering quoted parameters of embedded links. I currently have the following that is almost working: </p>
  
  <pre><code>&lt;a href="mailto:someaddress@somedomain.com?subject=This is a subject&amp;body=http://someserver.somedomain/somepage.aspx?id=1234%26somekey=%22somevalue%22"&gt;A link&lt;/a&gt;
  </code></pre>
  
  <p>A partial link appears correctly in the outlook body, however outlook is not including  the final quoted url parameter ("somevalue") in the link; the ="somevalue" is just appearing as plain text.  Viewing the source of the email message shows that outlook is closing the enclosing <code>&lt;a&gt;</code> tag as it is interpreting the %22 as the end of the link.  I've attempted to escape the %22 with %2f, /, ' - to no avail.  I believe that I need the correct sequence for outlook to understand that the %22 should be included in the link, and not as the closure of the enclosing link.  </p>
  
  <p>Any help would be appreciated.</p>