mailto&显示名称问题 [英] mailto & display name issue

查看:61
本文介绍了mailto&显示名称问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我在网站上有一个链接,如果你点击打开Outlook


< button onClick =" location .href =''mailto:a@b.com?subject = tes t subject''" >

选择< / button>


工作正常


但是我想要包含显示名称


通常显示名称的语法是


" display name" < a@b.com>


但是尝试在HTML中使用它不起作用


我有什么想法可以做到这一点?


谢谢

Hi

I have a link on a website that if you click opens up outlook

<button onClick="location.href=''mailto:a@b.com?subject=tes t subject''" >
Select</button>

Works fine

But I want to include a display name

Usually the syntax for a display name is

"display name" <a@b.com>

But trying to use that in HTML doesnt work

Any ideas how I can do this?

Thanks

推荐答案

2006年7月21日 mi ********** @ lineone.net 写道:
On 21 Jul 2006 mi**********@lineone.net wrote:

组织: http://groups.google.com



海外无辜者。

The innocents abroad.


我在网站上有一个链接,如果你点击打开outlook
I have a link on a website that if you click opens up outlook



我不相信!

I don''t believe that!


< button onClick =" location.href =''mailto:a@b.com? subject = tes t subject''" >

选择< / button>


工作正常
<button onClick="location.href=''mailto:a@b.com?subject=tes t subject''" >
Select</button>

Works fine



我不是相信!

I don''t believe that!


但是我想要包含一个显示名称

" display name" < a@b.com>
But I want to include a display name
"display name" <a@b.com>



< a href =" mailto:jo ****** @ example.invalid%20(John%20Do e)">

<a href="mailto:jo******@example.invalid%20(John%20Do e)">



mi **** ******@lineone.net 写道:

我在网站上有一个链接,如果你点击打开outlook
I have a link on a website that if you click opens up outlook



只有那些品味不好的人才能将Outhouse作为默认的

邮件程序。它可以打开一个不同的邮件客户端,在用户的浏览器中使用内置的

邮件程序,或者根本不为其他人做任何事情

他们正在使用的程序以及他们如何配置

他们。

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@b.com?subject=tes t subject''" >

选择< / button>
<button onClick="location.href=''mailto:a@b.com?subject=tes t subject''" >
Select</button>



这句话很糟糕; URL中没有正式允许使用的空格,但是有些软件对此有所了解。您应该将空间编码为

%20。此外,使用普通的

超链接可以更广泛地访问,而不是需要客户端脚本的按钮元素

支持。

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.


但我想要包括显示名称


通常显示名称的语法是


" display name" < a@b.com>
But I want to include a display name

Usually the syntax for a display name is

"display name" <a@b.com>



空格,引号和尖括号必须编码为

百分号符号(使用十六进制字符代码)。


-

Dan

The spaces, quotes, and angle brackets would have to be encoded as the
percent-sign equivalents (with hexadecimal character codes).

--
Dan


留言< 11 *** *******************@m79g2000cwm.googlegroups .com> ;, Dan

< da*@tobias.namewrites
In message <11**********************@m79g2000cwm.googlegroups .com>, Dan
<da*@tobias.namewrites

>
mi**********@lineone.net写道:
>
mi**********@lineone.net wrote:

> ;我在网站上有一个链接,如果你点击打开outlook
>I have a link on a website that if you click opens up outlook


只有那些品味不好的人才能将Outhouse作为默认的邮件程序。


Only for people with the bad taste to have made Outhouse their default
mail program.



Outlook也可以由一个人的雇主安装 - 这很难说b $ b b被称为坏味道。该个人方面。


此外,Outlook并不像某些邮件客户端那么糟糕 - 它肯定比Outlook Express更好b
例如。

-

Andy Mabbett

说不!强制性身份证:< http://www.no2id.net/>


免费我们的数据:< http://www.freeourdata.org.uk>

Outlook can also be installed by a person''s employer - which can hardly
be said to be "bad taste" on the part of that individual.

Besides, Outlook isn''t as bad as some mail clients - it''s certainly
better than Outlook Express, for instance.
--
Andy Mabbett
Say "NO!" to compulsory ID Cards: <http://www.no2id.net/>

Free Our Data: <http://www.freeourdata.org.uk>


这篇关于mailto&amp;显示名称问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆