那个页面里能将页面里的内容发送到邮件的客户端的.
例如,我在网页上的收件人填上:[email protected]  主题填上:aaa  内容填上:bbbbbbb.它就会在邮件的客户端(例如OUTLOOK)里的收件人、主题、内容分别对应上.但如果在主题那里填上中文。就会在邮件客户端里的主题出现乱码后连同内容全部填写在主题那里。如果在主题 为英文,内容为中文,客户端就会主题正常,内容那里乱码。实在给郁闷了,望高手们帮忙解决一下。下面我发上要那一部分的代码上来function savemail(){var sname = document.getElementById('sender_name').value;var mtitle = document.getElementById('mail_title').value;var mmsg = document.getElementById('msge').value;docookie('sname', sname,60);docookie('mtitle', mtitle,60);docookie('mmsg', mmsg,60);docookie('showmail', showmail,60);docookie('showadvanced', statea,60);}
<!-- Send URL by Mail -->
<script language="javascript">document.write('<script language="javascript" src="'+using_server+'js/sendmail_vars.js">')</script></script><table style="width: 410px; text-align: left" cellpadding="6" cellspacing="4" class="menu_table_gray"><tr><td class="menu_innerborder_gray" style="width: 424px"><table style="width: 100%; height: 17px;" cellspacing="0" cellpadding="0"><tr><td class="menu_fontblue" style="height: 17px"><script language="javascript">document.write('<img src="'+icon_mail+'" style="vertical-align:top;margin-right:3px;"/>'+sendurlbymail);</script></td><td class="menu_fontblue" style="height: 17px; text-align: right;"><a href="#" onclick="document.getElementById('sendurl').style.display='none'; showmail = 0; savemail();"><b>x</b></a></td>
</tr></table><form name="eMailer" id="eMailer" onsubmit="mailThisUrl();" class="font2"><table  style="width: 100%; margin-top: 3px" cellpadding="0" cellspacing="0" class="font2"><tr><td style="height: 30px; width: 260px" class="font2">
<script language="javascript">btn_mousefxs = "onmouseover=\"this.id='btn_over'\" onmouseout=\"this.id='btn_norm'\" onmousedown=\"this.id='btn_down'\" onmouseup=\"this.id='btn_over';\" ";sc01 = "<input id='btn' type='button' class='font2' value='"+send+"' "+btn_mousefxs+" style='width: 52px; font-size: 11px;";sc02 = btn_mousefxs + "onclick=\"mailThisUrl(); savemail();\" /></td><td class='font2' style=\"height: 30px; text-align: right;\">&nbsp;<input id=\"btn\" type=\"button\" value=\""+sendurl_customize+"\" style=\"width: 115px;font-size: 11px; ";
sc03 = btn_mousefxs + "onclick=\"togglebasic('mail_more',statea); swapstate(); savemail();  \"";document.write('<input type="text" class="font2" id="fill_txt" name="address" size="20" value="'+sendurl_email+'" style="height: 18px; width: 182px; padding:0px; padding-left:5px; " onclick="this.value=\'\'" />');if(navigator.appName.indexOf("Microsoft") > -1) { document.write(sc01+'height: 18px;margin-top:1px; "'+ sc02 +'height: 18px;margin-top:1px" '+sc03+'/>');} else { document.write(sc01+ 'height: 20px;"'+ sc02 +'height: 20px;" '+sc03+'/>');}</script>
</td></tr><tr><td colspan="2" class="font2"> <table id="mail_error" name="mail_error" cellspacing="2" cellpadding="2" ><tr><td valign="top" style="width: 16px;" bgcolor="#FAF5F5"><script language="javascript">document.write('<a href="#" title="'+close_dialog+'" onclick="document.getElementById(\'mail_error\').style.display=\'none\'"><img src="'+icon_error+'" border="0" /></a></td><td valign="middle" class="font2">'+wrong_email)</script></td></tr></table></td></tr><tr><td colspan="2" class="font2"><script language="javascript">document.write('<table id="mail_more" name="mail_more" style="width: 100%; display: '+showadvanced+'" cellspacing="0"><tr><td style="padding-top: 10px;" class="font2"><b><a href="#" onclick="document.getElementById(\'sender_name\').value=\''+sendmail_myname+'\'; savemail();" >'+your_name+'</a></b><br /><input type="text" class="font2" id="sender_name" name="sender_name" size="32" value = "'+sendername+'" style="height: 18px; width: 230px;" /><br /><br /><b><a href="#" onclick="document.getElementById(\'mail_title\').value=\''+sendmail_title+'\';savemail();">'+mail_title+'</a></b><br /><input type="text" class="font2" id="mail_title" name="mail_title" size="20" value="'+mailtitle+'" style="height: 18px; width: 230px;" /><br /><br /><b><a href="#" onclick="document.getElementById(\'msge\').value=\''+sendmail_message+'\';savemail();">'+message+'</a></b><br /><textarea name="msge" class="font2" id="msge" style="width: 380px;  height: 40px; padding-top:5px;">'+mailmessage+'</textarea><br/>');document.write('<table id="mail_infob" class="dialog" name="mail_infob" width="100%" cellspacing="2" cellpadding="2" style="display: block;" ><tr><td valign="middle" style="width: 16px; background-color: #EEF5F9;"><a href="#" title="'+close_dialog+'" onclick="document.getElementById(\'mail_infob\').style.display=\'none\'"><img src="'+icon_info+'" border="0" /></a></td><td valign="middle" class="font2">'+message_note + message_note2+'</td></tr></table>')</script></td></tr></table></td></tr></table></form><table id="mail_info" name="mail_info" class="dialog" width="100%" cellspacing="2" cellpadding="2" ><tr><td valign="middle" style="width: 16px; background-color: #EEF5F9;"><script language="javascript">document.write('<a href="#" title="'+close_dialog+'" onclick="document.getElementById(\'mail_info\').style.display=\'none\'"><img src="'+icon_info+'" border="0" /></a></td><td valign="middle" class="font2">'+use_emailclient)</script></td></tr></table></td></tr></table></div></body></html>