本文介绍了邮件脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的网站上使用以下脚本。我在

命令中这样做是为了防止网络蜘蛛程序收获我的电子邮件地址。


我想要主题也填好了。


有谁知道我怎么做?


谢谢


---------------------------------------------


< script language =" javascript">


<! -


var contact =联系MySiteName"


var email =" myname"


var emailHost =" MySiteName.com"

>
document.write("< a href =" +" mail" +" to:" + email +" @& quot; +

emailHost +" >" + contact +"< / a>")

// - >


< /脚本>

I''m using the following script on my web site. I have done this in
order to keep web spider programs from harvesting my email address.

I want to have the "Subject" line filled in also.

Does anyone know how I can do that?

Thanks

---------------------------------------------

<script language="javascript">

<!--

var contact = " Contact MySiteName"

var email = "myname"

var emailHost = "MySiteName.com"

document.write("<a href=" + "mail" + "to:" + email + "@" +
emailHost+ ">" + contact + "</a>")

//-->

</script>

推荐答案




使用服务器端表单处理程序。尝试使用mailto不会工作。


-

Hywel






基本上你需要形成一个带有href的链接像这样:


mailto:[email protected]?subject =这个%20is%20the%20 subject

(注意:你必须使用%20而不是主题行中的空格)


但请注意。似乎有机器人可以从像这样的简单Javascripts中提取电子邮件

地址。你最好使用强大的加密形式。这是你可以尝试的一个:


< http://freespace.virgin.net/phil.ronan/scramble.html>


希望有所帮助。


Phil


-

Philip Ronan


(如果通过电子邮件回复,请删除z)



Basically you need to form a link with an href that looks like this:

mailto:[email protected]?subject=This%20is%20the%20 subject
(Note: you have to use "%20" instead of spaces in the subject line)

But beware. There appear to be robots out there that can extract email
addresses from simple Javascripts like this. You would be better off using a
stronger form of scrambling. Here''s one you could try:

<http://freespace.virgin.net/phil.ronan/scramble.html>

Hope that helps.

Phil

--
Philip Ronan
ph***********@virgin.net
(Please remove the "z"s if replying by email)




基本上你需要形成一个如下所示的href链接:(注意:您必须使用%20而不是主题行中的空格)



Basically you need to form a link with an href that looks like this:

mailto:[email protected]?subject=This%20is%20the%2 0subject
(Note: you have to use "%20" instead of spaces in the subject line)




这个问题也应该是< FAQENTRY>,指出mailto:...

只能工作在具有适当配置的浏览器邮件的系统上

界面(并非所有这些都可以做主题)。


此外,想要的人发送邮件不一定是拥有的人。浏览器。


因此,总是应该有一种方式给予电子邮件地址

独立于mailto:。

永远不应该说mailto:不起作用;对于很多用户来说,它确实可以工作。

-

?约翰斯托克顿,英国萨里。 [email protected] Turnpike v4.00 MIME?

Web< URL:http://www.uwasa.fi/~ts/http/tsfaq.html> - > Timo Salmi:Usenet Q& A.

Web< URL:http://www.merlyn.demon.co.uk/news-use.htm> :关于新闻的使用。

无编码。回复之前的行情。剪得好。写清楚。不要邮寄新闻。



This question, too, should be a <FAQENTRY>, to point out that mailto:...
can only work on systems with an appropriately-configured browser-mailer
interface (and that not all of those can do Subject).

Moreover, the person who wants to send mail is not necessarily the
person who "owns" the browser.

Therefore, there should always be a means of giving the E-mail address
independently of mailto:.
One should never say that mailto: does not work; for many users, it
demonstrably does work.
--
? John Stockton, Surrey, UK. [email protected] Turnpike v4.00 MIME ?
Web <URL:http://www.uwasa.fi/~ts/http/tsfaq.html> -> Timo Salmi: Usenet Q&A.
Web <URL:http://www.merlyn.demon.co.uk/news-use.htm> : about usage of News.
No Encoding. Quotes before replies. Snip well. Write clearly. Don''t Mail News.


这篇关于邮件脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 08:03