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.comSprint: [phonenumber]@messaging.sprintpcs.comTMobile: [phonenumber]@tmomail.netVirgin Mobile: [phonenumber]@vmobl.comNextel: [phonenumber]@messaging.nextel.comBoost: [phonenumber]@myboostmobile.comAlltel: [phonenumber]@message.alltel.comEE: [phonenumber]@mms.ee.co.uk(might support send without reply-to)
| Mobile carrier | SMS gateway domain | MMS gateway domain |
|---|---|---|
| Alltel | sms.alltelwireless.com | mms.alltelwireless.com |
| AT&T | txt.att.net | mms.att.net |
| Boost Mobile | sms.myboostmobile.com | myboostmobile.com |
| Consumer Cellular | mailmymobile.net | mailmymobile.net |
| Cricket Wireless | mms.cricketwireless.com | mms.cricketwireless.com |
| Google Fi Wireless | msg.fi.google.com | msg.fi.google.com |
| MetroPCS | mymetropcs.com | mymetropcs.com |
| Republic Wireless | text.republicwireless.com | na |
| Sprint | messaging.sprintpcs.com | pm.sprint.com |
| VerizonWireless | vtext.com | vzwpix.com |