Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

How to prevent long URL wrapping in most email apps Apps
Mail wraps URL's longer than 80 characters, so that they no longer work correctly when a recipient clicks on the link. I know that you can use TinyURL to mail shorter URLs (see this previous hint for automated ways of doing this), but there is another way to include long URL's which is easier, especially if you include several links in one email.

Just put the URL between angle brackets, i.e., like this:
<http://www.somesite.com/a/really/long/url>
When formed in this way, the link remains clickable for the recipient of the Mail message.

[robg adds: This is a relatively basic tip, and one that I've personally known for a long time, though I don't know where I learned it. In searching both the site and Mail's help, I didn't find this documented in either place, so here it is.]
    •    
  • Currently 2.11 / 5
  You rated: 2 / 5 (9 votes cast)
 
[24,598 views]  

How to prevent long URL wrapping in most email apps | 16 comments | Create New Account
Click here to return to the 'How to prevent long URL wrapping in most email apps' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
How to prevent long URL wrapping in most email apps
Authored by: blackxacto on Jan 16, '07 07:35:22AM

Hadn't heard that one. Thank you very much.

Not a nubie, but not a programmer either. jr

---
You'll never know which way to look, which way to see us.



[ Reply to This | # ]
How to prevent long URL wrapping in most email apps
Authored by: fds on Jan 16, '07 07:49:07AM

Mail doesn't actually wrap lines in a non-reversible way. Apple Mail properly implements the format="flowed" and delsp="yes" extensions to plain text email, which mains that if the recipient is using a similarly capable email client, your message will come across intact, with only the hard line breaks you personally added.

That practically means when sending messages between two Apple Mail users, everything will be just fine. Get your recipients to switch. :)



[ Reply to This | # ]
Good hint, but may not always work
Authored by: Clint MacDonald on Jan 16, '07 08:17:45AM

This is a great tip that *usually* works, but can fail with some common (cough Outlook cough) e-mail clients.

I was aware of this tip (I think I read it on TidBITs many years ago) and used brackets for many years. However, some mail clients (I am looking at YOU, Outlook) seem to ignore the brackets. I had taken to writing the URL twice (once with brackets and once without), but people always questioned why I did *that*, so I gave up.

Microsoft Outlook also ignores "mailto:" links in the form of <mailto:clint@foo.com>, so I had to go to <clint@foo.com> to fix that one.

Grrr... :-)

Best wishes,
Clint



[ Reply to This | # ]
That's odd...
Authored by: jecwobble on Jan 16, '07 09:03:15AM

I have to use Windows and Outlook at work. I have Outlook set to default to RichText for a mail format. I have been using the angle brackets to create hyperlinks to web URL and network files in Outlook for years. I just doublechecked and the <mailto:someone> worked as expected for me. So it seems strange that if Outlook gets and email from Mail.app enclosing hyperlinks like this, that it would botch thems up.



[ Reply to This | # ]
That's odd...
Authored by: Clint MacDonald on Jan 16, '07 12:14:34PM

"Microsoft Outlook also ignores "mailto:" links in the form of <mailto:clint@foo.com>"
"I just doublechecked and the <mailto:someone> worked as expected for me."

Maybe it is just an issue on some implementations of Exchange/Outlook, since we have the problem at my institution.

Best wishes,
Clint



[ Reply to This | # ]
That's odd...
Authored by: osxpounder on Jan 18, '07 11:03:14AM

There may be a setting to disable this, and it may be set disabled by your organization as a security measure. Just speculating here....



[ Reply to This | # ]
Good hint, but may not always work
Authored by: johnsonua on Jan 16, '07 11:58:16AM

Mail.app is one of the ones that breaks this constantly, putting in an extra space when it breaks a link over a wrap.

I've had this issue on several mailing lists I'm a member of, and Mail breaks the %@$!##@ links as often as not, brackets or no. I know it isn't simpy a client issue, and even if it were, mail should not be inserting unwanted characters in the link.

I ended up just putting a TinyURL js link on my browser's bookmark bar, so I can rapidly make tinyurls that don't break.



[ Reply to This | # ]
Another reason to use brackets
Authored by: googoo on Jan 16, '07 08:50:12AM

I usually use brackets around URLs for another reason: punctuation. If you use a URL in a sentence, most E-mail clients do not know where the URL ends and trailing punctuation (i.e., periods, question marks, and commas) begins. Using < and > around the URL avoids this problem.

-Mark



[ Reply to This | # ]
How to prevent long URL wrapping in most email apps
Authored by: poenn on Jan 16, '07 10:31:30AM

Aha!

So THAT'S the reason why OmniWeb sends URLs in brackets to Mail, if you tell it to do so!

Thanks a lot!
Björn



[ Reply to This | # ]
How to prevent long URL wrapping in most email apps
Authored by: mzso on Jan 16, '07 10:57:18AM

Nowadays most apps can render HTML emails. I used to send very long URLs as HTML and make the URL a link (embed it into a HTML anchor tag). This way the link will be properly loaded in the browser if the user clicks on it, even if it is broken into two lines.



[ Reply to This | # ]
How to prevent long URL wrapping in most email apps
Authored by: chally on Jan 16, '07 11:27:23AM

I've had poor luck with that strategy. tinyurl.com, however, works perfectly every time.



[ Reply to This | # ]
Right-clicking, too
Authored by: jecwobble on Jan 16, '07 01:12:01PM

If you select some text in Mail.app, then right-click, there is an "edit hyperlink" option where you can put the URL, also.



[ Reply to This | # ]
How to prevent long URL wrapping in most email apps
Authored by: techren on Jan 16, '07 01:23:07PM

| This is a relatively basic tip, and one that I've personally
| known for a long time, though I don't know where I learned it.

A really long time, relatively: RFC 2396, from August 1998. See Section E., "Recommendations for Delimiting URI in Context".

I've been using this method this in all of my mail since then.

Ed.

[ Reply to This | # ]
How to prevent long URL wrapping in most email apps
Authored by: willow on Jan 16, '07 02:45:16PM

Use this as a Safari bookmark, title it "Mail URL" or something, and place it in the Bookmarks Bar.

It will do the job for you.

javascript:location.href="mailto:?SUBJECT="+document.title+"&BODY="+"<"+escape(location.href)+">"

---
Mike Hubbard



[ Reply to This | # ]
How to prevent long URL wrapping in most email apps
Authored by: emaven on Jan 17, '07 12:40:16AM

This works most of the time, but sometimes all I get is the subject. The link is missing. Do you know why this happens?



[ Reply to This | # ]
How to prevent long URL wrapping in most email apps
Authored by: sjmills on Jan 17, '07 07:25:44AM

I've *always* put angle brackets around urls in email messages, and they always break when some Windoze users get my message. It's not Mail causing that, it's the Windows mail client being stupid. And these users aren't smart enough to realize that the url they see in IE is shorter than the one they clicked in the message, or that there's a space in there if their mail client somehow managed to keep the entire wrapped url intact (plus the unnecessary space).

I recently found the Add Hyperlink menu item in Mail (funny how you miss a lot of features if you aren't paying attention:). I haven't actually tried sending one to Windoze users yet.



[ Reply to This | # ]