Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

HTML Email

I have an HTML email in which I have a "mailto" link. This mailto link contains a subject and some basic body text.

The body text also contains a reference to a CRM system, and this text outputs a unique ID, when the user click this mailto link.

Is it, somehow possible to style only this unique ID, so that it turns out white (invisible) for the client, when he presse the link and outlook opens a new mail.

The HTML looks something like this: <p> <a href="mailto:marketing@domain.com&amp;subject=This is the subject&amp;body=This is some kind of random intro text.%0A%0Acampaign:0001%20#[Person/crmContactId]#">
</a> </p>

So, this string: campaign:0001%20#[Person/crmContactId]#

outputs something like (in the email when "mailto" link is clicked: Campaign ID: 58475465118987991

it's the line above I would like to color white, without affecting the rest of the text in the pre-populated body text.

Is this doable? And HOW?

3 Answers

It stripped out my HTML.

The HTML looks something like this:

<p>
       <a href="mailto:marketing@odomain.com&amp;subject=This is the subjectfield&amp;body=Some random body text and the CRM code is just right after this%0A%0Acampaign:0001%20#[Person/crmContactId]#">
       </a>
 </p>

So basically I guess my question is: How can I style the outputted pre-populated bodytext that shows up in outlook, when someone clicks a "mailto" link?

Bump :(