Re: mailto & display name issue
- From: "Dan" <dan@xxxxxxxxxxx>
- Date: 21 Jul 2006 16:23:22 -0700
mike_solomon@xxxxxxxxxxx wrote:
I have a link on a website that if you click opens up outlook
Only for people with the bad taste to have made Outhouse their default
mail program. It may open up a different mail client, use a built-in
mailer in the user's browser, or do nothing at all for other people
depending on what programs they are using and how they have configured
them.
<button onClick="location.href='mailto:a@xxxxx?subject=test subject'" >
Select</button>
That's poor syntax; spaces aren't officially allowed in URLs, though
some software is forgiving of this. You should encode the space as
%20. Also, it would be more widely accessible to use a normal
hyperlink instead of a button element requiring client scripting
support.
Works fine
For some users in some situations.
But I want to include a display name
Usually the syntax for a display name is
"display name" <a@xxxxx>
The spaces, quotes, and angle brackets would have to be encoded as the
percent-sign equivalents (with hexadecimal character codes).
--
Dan
.
- Follow-Ups:
- Re: mailto & display name issue
- From: mjs
- Re: mailto & display name issue
- From: Andy Mabbett
- Re: mailto & display name issue
- References:
- mailto & display name issue
- From: mike_solomon
- mailto & display name issue
- Prev by Date: Re: Flash Loons
- Next by Date: Re: Flash Loons
- Previous by thread: Re: mailto & display name issue
- Next by thread: Re: mailto & display name issue
- Index(es):