每次加载页面时,我都需要(静默)发送一封电子邮件。我尝试了以下代码:
<html>
<head>
<script language="javascript" type="text/javascript">
var email = "h.kamrava@yahoo.com"
var subject = "test"
var body = "Hello world"
document.write("<form name="form" action=\"mailto:"+ email +"\?subject="+ subject +"\&body="+ body +"\" method=\"post\" enctype=\"text/plain\"></form>")
</script>
</head>
<body onload="document.form.submit()">
</body>
</html>
这对我不起作用!我究竟做错了什么?tnx