mailto html link encoding

Posted on 2012-08-31
Last Modified: 2012-11-18
I am dynamically creating subject's and body text for html mailto link's in VB.NET.

Dim hyperlink As String = "<a href="">Test Link</a>"

How do I encode the body & subject so that it can be HTML in VB.NET?

For example:

Dim hyperlink As String = "<a href="<p>Hello,<br /><br />Link to <a href=""""></a> as well as special characters: & % #, etc<br /><br />Thanks,<br /><br />Matt</p>">Test Link</a>"
Question by:Matthew Kelly
    LVL 18

    Expert Comment

    by:Rajar Ahmed
    LVL 18

    Author Comment

    by:Matthew Kelly
    That is if the code was sending the email. I want to use the mailto: so that the email pops-up in Outlook and so the user can edit the email before sending.
    LVL 18

    Accepted Solution

    I don't think this is possible so I am going to close this question.
    LVL 18

    Author Closing Comment

    by:Matthew Kelly
    No solution found to this problem

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
    In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now