Re: mailto & display name issue
- From: "mjs" <mike_solomon@xxxxxxxxxxx>
- Date: 26 Jul 2006 09:50:52 -0700
Dan wrote:
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
Thanks for that - encoding did the trick
.
- References:
- mailto & display name issue
- From: mike_solomon
- Re: mailto & display name issue
- From: Dan
- mailto & display name issue
- Prev by Date: Re: Doing frames, without frames?
- Next by Date: Re: HTML emails...
- Previous by thread: Re: mailto & display name issue
- Next by thread: Re: mailto & display name issue
- Index(es):