Re: mailto & display name issue




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

.