how to encode whitespace in mailto link to create a hyperlink - html

Im using outlook 2007, and want a hyperlink to a site in the body parameter of the mailtolink.
The link to the site has whitespaces in it. If i try to use %20, the whitespace gets rendered but the problem is in outlook, the part of the link thats actually a hyperlink is from the beginning uptil the first white space.
like this:
www.my site.aspx
So here the bold is the actual hyperlink.
Does anyone know the solution to this?
Thanks.

Add < and > around the URL and outlook keeps the URL together ignoring the spaces.

Related

Oulook 2010 displays images in mail signature at 166%

When I try and create an HTML email signature and choosing it as my signature in Outlook the resulting display is horrendous. It literally ignores all the inline styles I specify on my text (eg, font-size:13px) and appears to enlarge things by about 66%. Even when I use the signature editor, my images end up enlarged. All the content lives inside a table layout.
I've tried many fixes from around the web, including opening the HTML in a browser and selecting all, then copying and pasting into the editor window. Even when I insert the image via the editor, it still comes out at that bigger size on the receiver's end. I've tried adding additional headers too.
I'd appreciate any input to help me solve this. The signature works fine in Thunderbird.

Plain text converts to link on mobile

I have a name like this Domain.com, in my normal e-mail account it will be displayed as plain text but at my mobile it's a link.
Is it possible to disabble it by a tag?
This is the email client adding the link afterwards. Trick is to make it unrecognizable so that it isn't triggered.
This article addresses the issue.
If you are not building a full html email (no style tag), you might be able to get away with adding a zero width space  in the domain to help break it up. Something like this might work:
http://domain.com

Javamail: Send a HTML mail with an "unclickable" URL on it

I come with an issue that is giving me some headaches.
I'm sendind some e-mail confirmations, using JavaMail and an HTML template, that is written on the message content.
This HTML template, has a URL on it, but this URL is not wrapped into a tag, it's just a plain text inside the HTML body.
The problem is that the URL appears as a clickable link on the mail message, and that's not the behavior I'd like. I'd prefer the user to copy and paste the URL to the browser (security policies at work)
Have any of you done something like this ?
Thanks in advance
You can't. You cannot control how mail user-agents handle incoming mail. Mail clients do this for the convenience of the user. I fail to see how this is a security issue.
The only alternative is to put the URI in an attached image, but that would just annoy your users.
you could explicitly code the url to not be a clickable link (a without the href)... It will still appear as a link, but it won't be clickable.
EDIT: It seems the user below is correct.
EDIT2: It actually seems I may have been correct. I tried composing an email at
http://putsmail.com/tests/838716156f824732c7f5456122c38e
with the html:
<html>
www.google.com
<a>http://www.google.com</a>
</html>
and the second link appeared as text.
You can't explicitly insert html in the gmail client, but you can with your own.
EDIT:
I went back this morning and tried this html:
<html>
www.google.com
<a>http://www.google.com</a>
http://www.google.com
</html>
and only the second link was plaintext. Just FYI...
I've found a way to do this.
The key is to insert a zero width space (​) somewhere between the URL
So, I changed my URL from
http://my.site.com/somecontext?contextid=somekeyvalue
to
ht​tp://my.site.com/somecontext?contextid=somekeyvalue
And now the URL is not interpreted as a link by the mail clients, but it's still good for a copy-paste to the browser.
Thank you all for your help!

How to remove an unneccessary space within a link

I'm having trouble trying to remove a space that has been added to a hyper link. The HTML code for the link is correct and I even tested it within my browser. It works fine, however when I past the code into my email service provider and do a test send the links still come in with an unnecessary space.
I'm stumped as to what to do.
Use HttpUtility.HtmlEncode(url), nd on the other end HttpUtility.HtmlDecode(url)
Make sure the anchor is on one line. Your email service provider may be breaking it out to something like:
<a href="">
text
</a>
Which could cause extra spaces to show up.

html correctness link blank or pound sign

What's more correct, an empty string link or a pound?
For example for anchor tags
Or if I were to reference a style sheet, basically anywhere in the html document where a link should be, if I want to remove all these links is it better to make it a pound or blank?
If you need more details i'm basically canning them and need to remove all external dependencies.
You can use to avoid any loading or scrolling.
If an anchor tag has a blank href, clicking it would cause the page to reload, whereas a pound would stay on the page, but bring them back to the top. Neither are ideal since the user would be confused...
For removing stylesheets...why not remove the whole line altogether?