Our app requires an email be sent to a formatted address for tracking purposes the format required to be sent to the mail client is like this:
<a href="mailto\:David Contact<{contactId=2} {userId=2} {pitchingInitiativeId=9}@mail.com>" target="_blank">
In my template I format the href string like this...
mailto:{{contact.name}}<{contactId={{contact.contactId}}} {userId={{userId}}} {pitchingInitiativeId={{pitchingInitiativeId}}}@propelmymail.com>
This results in a mailto link that is formatted like this:
mailto:Reporter%3C%7BcontactId=1%7D%20%7BuserId=7%7D%20%7BpitchingInitiativeId=21%[email protected]%3E
Which is obviously not correct. How do I fix this so a mailto link is formatted correctly? I believe that there is a general understanding that special characters are dangerous in URLS, but in this case it's the requirement. I guess I have just never learned how to escape them or mark them as safe.