Click here to Skip to main content
16,023,339 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I require to send a mail from the C# code and notify the user via SMS on his cellphone about the same. Is there any way i can do it. I did some googling about the same but could not get much of the idea.

Can anyone help mee out of this?

Thanks In Advance ..

-Live Lucky :)Ω
Posted
Updated 26-May-11 22:13pm
v2
Comments
[no name] 26-May-11 14:21pm    
I don't mean to be flippant, but there are so many resources available on sending SMS I can't believe you couldn't find any useful information.

here is the simple solution using way2sms / 160by2 accounts tested and working....

ClickHere for solution
 
Share this answer
 
v2
Comments
XtremLucky 11-Apr-12 11:04am    
@varaprasadreddy :
well interestingly u gave mee an apt solution Sir ..
But it wud be great if u give mee some pointers to work in this direction ..
(May b Secretly - if not publicly ) :)

But i must say its worth appreciating ..!
POINTERS/Refernces to go ahead with something of this sort .Please
Use AT commands[^] to send and receive SMS via GSM Modem/Cellphone.

Remember that it is using a diffent encoding (GSM default alphabet (GSM 03.38)[^]) where something like sending a "@" char is encoded as 0x00.

Use AT+CSCS to set TE character set to support the correct encoding.
AT+CSCS=? to list all supported encodings. But please note, that not all GSM units/modem support all types of encoding.

To really make it the correct way. You have to switch SMS message format to PDU encoding via AT+CMGF command.

Via PDU format, you can select the correct encoding, make long SMS ( over 160 char ), sending pictures, ring tone etc..

Send and Read SMS through a GSM Modem using AT Commands[^]
 
Share this answer
 
It's been asked too many times.Take a look at this one. code for sending sms to mobile in asp.net[^]
 
Share this answer
 
Twilio has a C# library just waiting for you to use.[^] You'll be sending SMS messages with only a few lines of code and you'll pay only $0.01 per message.

<experience>Don't message around with services/libraries that use e-mail to SMS gateways to send your messages for "free" unless do not value your own time at all.</experience>

<disclosure>I have no affiliation with Twilio.</disclosure>
 
Share this answer
 
It's frequent question here in CP, so browse here Send SMS - CP Search[^]

You can find many articles & past questions with multiple answers, Enjoy.
 
Share this answer
 
Comments
Wonde Tadesse 26-May-11 19:39pm    
5+

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900