Link to home
Start Free TrialLog in
Avatar of Matthew Kelly
Matthew KellyFlag for United States of America

asked on

mailto html link encoding

I am dynamically creating subject's and body text for html mailto link's in VB.NET.

Dim hyperlink As String = "<a href="mailto:someone@example.com?subject=Test&body=Test">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="mailto:someone@example.com?subject=Test&body=<p>Hello,<br /><br />Link to <a href=""www.google.com"">www.google.com</a> as well as special characters: & % #, etc<br /><br />Thanks,<br /><br />Matt</p>">Test Link</a>"
Avatar of Rajar Ahmed
Rajar Ahmed
Flag of India image

Avatar of Matthew Kelly

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of Matthew Kelly
Matthew Kelly
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
No solution found to this problem