I am trying to create non clickable email addresse in application generated HTML emails for when users signup for a trial. Outlook and other mail client annoyinglyconverts these to mailto links.
I know this has been answered before, but without success for me.
see: Previous SO Answer
My web application includes a user name(email address format) in the signup email, and of course email clients such as Outlook and IPad Mail recognise the email address format and immediately wraps the text to be clickable as a MailTo, but also to show it in dark blue, as a link would be. I just want to show it as a piece of text, non clickable and in a custom colour. Also I have tried adding non existent tags such as <Z/>
, but this just comes out in the text. I would not wish to have strange replaced characters appear such as "jim AT bloggs.com" as this will confuse the user.
So how can I make "jim@bloggs.com" appear as "jim@bloggs.com" in my emails without being clickable and in a colour of my choosing.
EDIT1
Your Username is: <span>jim<z>@</z>bloggs.com</span>
This is as a result of .Replace("@","@")
So I guess that was wrong, and my replacement string needs to be something else?
EDIT2:
Your Username is: <span style="color: #656565;font-weight:bold;">jim&commat;bloggs.com</span>
So "@" is appearing in the text which is non clickable and in the correct colour, but I really need @
rather than @
in the username. By the way I am replacing this text in code using .NET's Razor:
Username.Replace("@","@");
However I guess the principle would be similar for any server language.