邮件里字符串换行的问题,急啊~~~~~
StringBuilder body = new StringBuilder();
body.AppendFormat("Name={0}\r\n", name);
body.AppendFormat("Email= {0}\r\n", email.Trim());
body.AppendFormat("How can we help you={0}\r\n", category); 如果category 是CCB.com is not working 就不换行了,如果短点儿的话,就能换行。这是为什么呢
body.AppendFormat("Where on KBB.com={0}\r\n", tech_section);
body.AppendFormat("Browser={0} {1}\r\n", msgBrowser, msgBrowserVersion);
body.AppendFormat("Supports cookies={0}\r\n", msgBrowserCookies);
body.AppendFormat("Supports javascript={0}\r\n", msgBrowserJavascript.ToString());
body.AppendFormat("Server={0}\r\n", Server.MachineName);
body.AppendFormat("Zip Code={0}\r\n", zipCode);
body.AppendFormat("URL= {0}\r\n", TempData["urlReferrer"] == null ? "" : Server.UrlDecode(TempData["urlReferrer"].ToString()));
body.AppendFormat("Comments:{0}", comments);