0

我正在使用下面的代码生成一封电子邮件,如果投诉文本框大于 30-40 个字符,则电子邮件不会生成,我只会得到一个空白的 IE 页面。有某种限制吗?

 <script type="text/javascript">
   function sendMail(CustomerTextbox, AddressTextBox, CityTextBox, StateDropDown, ZipTextBox, ModelTextbox, SerialTextbox, ReferenceTextbox, ComplaintTextBox, WarrentyTextBox) {
   var CustomerTextbox = document.getElementById(CustomerTextbox).value;
   var AddressTextBox = document.getElementById(AddressTextBox).value;
   var CityTextBox = document.getElementById(CityTextBox).value;
   var StateDropDown = document.getElementById(StateDropDown).value;
   var ZipTextBox = document.getElementById(ZipTextBox).value;
   var ModelTextbox = document.getElementById(ModelTextbox).value;
   var SerialTextbox = document.getElementById(SerialTextbox).value;
   var ReferenceTextbox = document.getElementById(ReferenceTextbox).value;
   var ComplaintTextBox = document.getElementById(ComplaintTextBox).value;
   var WarrentyTextBox = document.getElementById(WarrentyTextBox).value;

   var body = "Please issue a RMA for this case." + "\r\n";
   body += CustomerTextbox + "\r\n";
   body += AddressTextBox + "\r\n";
   body += CityTextBox + "\r\n";
   body += StateDropDown + "\r\n";
   body += ZipTextBox + "\r\n";
   body += ModelTextbox + "\r\n";
   body += SerialTextbox + "\r\n";
   body += ReferenceTextbox + "\r\n";
   body += ComplaintTextBox + "\r\n";
   body += WarrentyTextBox + "\r\n";

   document.location = "mailto:&subject=" + "Name - " + CustomerTextbox + "&body=" + escape(body);

}

4

1 回答 1

0

Internet Explorer 的最大 URL 长度为 2,083 个字符, 请参阅 Microsoft 支持 KB 208427

另请查看问题 417142

于 2013-08-15T20:52:11.763 回答