问题
I'm making application and I want be alerted in some situation. I want make app to send SMS on my phone.
How can I use some free smsgate through C#. I've T-Mobile CZ.
I read I can send an email on some special email address and it will send SMS to phone. But I don't know how can I do that and I don't know how long message can be and if I can use diacritics or not.
回答1:
Check out this website they list a whole bunch of carriers and how to send email as a text
I know in canada A bell mobility phone can be texted to like this
6135551234@txt.bell.ca
http://appscout.pcmag.com/e-mail/276407-how-to-send-email-to-sms-cell-phones-by-carrier
Edit
This next link has a CZ T-Mobile http://mutube.wordpress.com/projects/open-email-to-sms/gateway-list/
In Czech Republic:
- Vodafone – name@vodafonemail.cz (max 9×160=1460 chars)
- O2 – n@sms.cz.o2.com (max 60 chars)
- T-Mobile – name@click.cz (only paying customers)
Check out this link for how to send an email
Sending email through Gmail SMTP server with C#
回答2:
You should use SMPP protocol, but you need to know smsgate requisites. Look at this libs: inetlab, easysmpp
来源:https://stackoverflow.com/questions/10782798/sending-sms-using-net