我的网站上的表格中有以下代码
<select class="form-control carrier" name="carrier" id="">
<option value="">* Who Is Your Phone Carrier?</option>
<option value="txt.att.net">AT&T</option>
<option value="tmomail.net">T-Mobile</option>
<option value="vtext.com">Verizon</option>
<option value="messaging.sprintpcs.com">Sprint</option>
<option value="vmobl.com">Virgin Mobile</option>
<option value="mmst5.tracfone.com">Tracfone</option>
<option value="mymetropcs.com">Metro PCS</option>
<option value="myboostmobile.com">Boost Mobile</option>
<option value="sms.mycricket.com">Cricket</option>
<option value="ptel.com">Ptel</option>
<option value="text.republicwireless.com">Republic Wireless</option>
<option value="tms.suncom.com">Suncom</option>
<option value="message.ting.com">Ting</option>
<option value="email.uscc.net">U.S. Cellular</option>
<option value="cingularme.com">Consumer Cellular</option>
<option value="cspire1.com">C-Spire</option>
<option value="vtext.com">Page Plus</option>
</select>
然后在控制器中我保存数字如下
var pNumber = PhoneNumber.Replace("(", "");
pNumber = pNumber.Replace(")", "");
pNumber = pNumber.Replace("-", "");
pNumber = pNumber.Replace(" ", "");
var fullPhoneNumber = pNumber + "@" + carrier;
将其保存在我的数据库中后,我会像普通电子邮件一样发送ti
private void SendWebMailMessage(string to, string from, string subject, string body)
{
//create the mail message
MailMessage mail = new MailMessage();
//set the FROM address
mail.From = new MailAddress(from);
//set the RECIPIENTS
mail.To.Add(to);
//enter a SUBJECT
mail.Subject = subject;
//Enter the message BODY
mail.Body = body;
//set the mail server (default should be smtp.1and1.com)
SmtpClient smtp = new SmtpClient("smtp.1and1.com");
//Enter your full e-mail address and password
smtp.Credentials = new NetworkCredential("********", "*****");
mail.IsBodyHtml = true;
//send the message
smtp.Send(mail);
}
关键是我可以通过电子邮件将文本发送到手机。 这在我的ATT电话上工作正常,但使用Verizon的用户之一抱怨说,如果消息不仅仅是一个句子或两个部分被切断。她说,之前她的电话从未发生在她身上,有时候,如果消息很长,它就会以两条消息的形式出现。可能导致这个问题的原因是什么?