可以用javascript自动提交到服务器
用服务器端的组件来发

解决方案 »

  1.   

    to bsd:能不能说的再详细一点
      

  2.   

    比如有一个页面包含如下几个参数
    <form name="mail" action="sendmail.jsp" method="post">
    <input type="hidden" name="subject" value="主题">
    <input type="hidden" name="body" value="你想发送什么内容随便你">
    <input type="hidden" name="sendto" value="[email protected]">
    <input type="hidden" name="copyto" value="[email protected]">
    </form>
    你可以将这个页面里放在一个看不见的iframe或者frame,也可以在屏幕外弹出一个新窗口,然后用javascript把要发送的内容保存到相应的参数,用mail表单的submit()方法提交到服务器上,由服务器接收,然后你想怎么发信就看你自己在服务器端编写的东东了
    不过这种做法很可能会引起用户的反感,请慎用