生成电子邮件时字符的限制? [英] Character limit when generating an email?

查看:308
本文介绍了生成电子邮件时字符的限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am using the code below to generate an email and if the complaint textbox is greater than 30-40 characters the email does not generate and I just get a blank IE page. Is there some sort of limit?

 <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);

}

推荐答案

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

Internet Explorer has a maximum URL length of 2,083 characters, see Microsoft Support KB 208427.

还检查了<一个href=\"http://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers\">question 417142 。

这篇关于生成电子邮件时字符的限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆