This topic has been archived. It cannot be replied.
-
工作学习 / 专业技术讨论 / Ask for similar function as "mailto"I am try to submit a form using mailto. I take all the form textfield's value as the body message of mailto. Unfortunately, I found there is a body length for mailto command, something like not more than 100 characters. That's too bad. By the way, I am using HTML and Javascript to encode it. Can anyone give me some good idea?
-raindot(三年不苦);
2005-6-30
{330}
(#2374245@0)
-
urgent. Please help me!!!
-raindot(三年不苦);
2005-6-30
(#2374456@0)
-
没有什么100字符的限制吧,在javascript里用escape(body)里应该就可以了
-markriver(markriver);
2005-6-30
(#2375272@0)
-
我还是不太清楚,请详细说明好吗?谢谢!
-raindot(三年不苦);
2005-7-2
(#2377421@0)
-
看看这个:http://redvip.homelinux.net/varios/mailto.html
-markriver(markriver);
2005-7-4
{46}
(#2379225@0)
-
Thank you. I tried it. But still doesn't work.
-raindot(三年不苦);
2005-7-4
(#2379270@0)
-
编码也做了吗?
-markriver(markriver);
2005-7-4
{1340}
(#2379325@0)
-
I tried this sample. the same problem, I can input only about 200 characters in the body.
-raindot(三年不苦);
2005-7-4
(#2379314@0)
-
the exact body length is 239 characters
-raindot(三年不苦);
2005-7-4
(#2379321@0)
-
那可能就是你的邮件系统的限制(lotus notes本身的缺陷或者人为的配置),换一个试试吧。我都是用的outlook express做的。
-markriver(markriver);
2005-7-4
(#2379335@0)
-
I tried it in hotmail. It's Okay. How can I change Lotus Notes configurations?
-raindot(三年不苦);
2005-7-4
(#2379377@0)
-
对不起,我一点儿也不懂lotus notes,所以也不知道怎么配置。其实如果你能用ASP,JSP的话问题就容易解决多了
-markriver(markriver);
2005-7-4
(#2379391@0)
-
I use HTML and JavaScript. I don't know how to use ASP. :(((((
Anyway, thank you very much.
-raindot(三年不苦);
2005-7-4
(#2379440@0)
-
啥是mailto啊?mailto: 只是一个html的tag吧如果要发信,windows平台IIS server 可以用CDO 或者CDONTS ,unix 平台用sendmail.
-holdon(again);
2005-7-1
{76}
(#2375792@0)
-
"mailto:emailaddress" is a protocol. like http://, ed2k://. it need to registered by browser or html enabled application. when click the URL is directed to propriate application, like IE, email client or edonkey...
-647i(-);
2005-7-2
(#2377429@0)
-
since it is protocol, it works not only for windows, but also for Linux, which I am using. For other OS, the same thing.
-647i(-);
2005-7-2
(#2377434@0)
-
你说的对,mailto确实是一个protocol,不过这个东西并不能发信,只是启动缺省发信软件,所以我一直觉得和一个tag没什么区别。
-holdon(again);
2005-7-3
{81}
(#2377831@0)
-
你说得对,我只是自动启动Lotus
-raindot(三年不苦);
2005-7-3
(#2378454@0)
-
没有发现100字符的限制啊?<html>
<form action="mailto:test@tets.com">
subject:<input type=edit name=subject><br>
body:<br>
<textarea name=body>
</textarea>
<input type=submit value="send">
</form>
</html>
做了个测试页,我在body里放了300多,没有问题。估计是encode 除了问题吧。
-holdon(again);
2005-7-3
{262}
(#2377835@0)
-
在我的程序里有16个textfield. 所有textfield的值和相应的Label都作为mail得body message. 另外,缺省的邮件系统是Lotus,请问你的邮件系统是什么?
-raindot(三年不苦);
2005-7-3
(#2378457@0)
-
我用mailto:test@test.com&subject=test?body="+textfield1.value+textfield2.value+......
-raindot(三年不苦);
2005-7-3
(#2378464@0)
-
试过mailto:test@test.com—body=长字符串,也没问题。mail client 是 outlook express. 建议你把textfield1.value+textfield2.value...用一个简单长字符串替换试试。
-holdon(again);
2005-7-4
(#2379128@0)
-
另外似乎用mailto:test@test.com&subject=test&body=好一些。不用?号
-holdon(again);
2005-7-4
(#2379129@0)
-
Thank you. I think it is probably because of Lotus Notes system. I tried again today. The same problem.my code is:
location = "mailto:test@test.com?subject="+Subject+"&body="+L1+L2+L3+L4+L5+L6+L7+"&cc="+CC;
L1=document.myform.T1.value;
L2=document.myform.T2.value;
and so on.
<input type="text" name="T1">
I am going to die if I can't resolve it!!!
-raindot(三年不苦);
2005-7-4
{271}
(#2379236@0)