SMS

sms with email

Most major carriers offer an email to text service. The program can use email to send an SMS message. For example:

C#

var message = new MailMessage();
message.From = new MailAddress("sender@foo.bar.com");

message.To.Add(new MailAddress("5551234567@txt.att.net"));//See carrier destinations below
//message.To.Add(new MailAddress("5551234568@txt.att.net"));

//message.CC.Add(new MailAddress("carboncopy@foo.bar.com"));
message.Subject = "This is my subject";
message.Body = "This is the content";

var client = new SmtpClient();
client.Send(message);

Carrier destinations

Compose a new email and use the recipient's 10-digit wireless phone number, followed by:

[cell phone number]@[carrier's gateway domain]

For example, 5551234567@txt.att.net

For example, 5551234567@txt.att.net.

  • ATT: [phonenumber]@txt.att.net.
  • Verizon: Similarly, [phonenumber]@vtext.com
  • Sprint: [phonenumber]@messaging.sprintpcs.com
  • TMobile: [phonenumber]@tmomail.net
  • Virgin Mobile: [phonenumber]@vmobl.com
  • Nextel: [phonenumber]@messaging.nextel.com
  • Boost: [phonenumber]@myboostmobile.com
  • Alltel: [phonenumber]@message.alltel.com
  • EE: [phonenumber]@mms.ee.co.uk (might support send without reply-to)
Mobile carrierSMS gateway domainMMS gateway domain
Alltelsms.alltelwireless.commms.alltelwireless.com
AT&Ttxt.att.netmms.att.net
Boost Mobilesms.myboostmobile.commyboostmobile.com
Consumer Cellularmailmymobile.netmailmymobile.net
Cricket Wirelessmms.cricketwireless.commms.cricketwireless.com
Google Fi Wirelessmsg.fi.google.commsg.fi.google.com
MetroPCSmymetropcs.commymetropcs.com
Republic Wirelesstext.republicwireless.comna
Sprintmessaging.sprintpcs.compm.sprint.com
VerizonWirelessvtext.comvzwpix.com