˹á
 úҹ
  C/C++ new
  Java new
 Sourcecode.TV
  Android
  Blackberry
  C/C++
  Java
  Linux
  Windows Phone
  ͧͧ
 
  .NET
  Android
  Blackberry
  C++Builder
  Delphi
  Java
  Mobile
  Open Source
  Pocket PC
  Visual Basic
  Web
  Windows Phone
  Others
 Ẻ¹
  ASP
  ASP.NET Webmatrix
  C++
  eVB
  J2ME
  Java
  PHP
 
  Android
  ASP
  C++
  VC++
  CGI-Perl
  Delphi
  Java
  jQuery
  PHP
  Visual Basic
  .NET
 ԡèҡ
  Դ...
  DoodeeHosting
  Ѻ͡Ẻ Ѳ䫵
  Freeware
  ѵҤɳ
  ª١
  ʶԵԼ
 Ŵ
 Ң
 дҹʹ
  .NET
  C/C++
  Delphi
  Java
  Palm/PocketPC
  Visual Basic
  Web
 
 дҹҹ
 ԧ
 ǡѺ
 ѵҤɳ
Social Network

Facebook  Twitter  YouTube
 New Article
 Webboard
 Freelanceboard
Freeware
 (BerDee)
(Android)
駩غ
駩غ(Android)
WebcamMonitor
WebcamMonitor(Windows)
scSendMail
scSendMail(Windows)
MSN Caption
MSN Caption(Windows)
  Freelance comment
  ԴͺʹФѺ...
2015-07-29 13:35:58
  Ҽͧ纷ѲҴ HTML5 ...
2015-01-18 15:33:54
  Ҽͧ纷ѲҴ HTML5 ...
2015-01-18 15:32:51
  ԴͺФѺ
ҹ...

2014-01-06 12:47:38
  ѧҤ͹ ͧ֡ͧ...
2013-07-06 01:04:37
  ʹ觢ͺࢵҤҤҡ͹ФѺ...
2013-03-24 18:54:20
  ѧդѺҹԴѺ 08...
2012-12-16 19:18:14
  ʹ㨤 Դ 0905076277...
2012-11-12 11:07:46
  Ѻ礹ѡ֡ͺѷ
...

2012-10-29 03:10:46
  sukit_te34@hotmail.com...
2012-10-29 03:09:36
  Webboard comment
  ͧ gotoxy ѧ...
2017-08-28 11:45:52
  ͧҧա u...
2017-08-27 20:09:01
  #define GLUT_DISABLE_ATEXIT...
2017-08-27 12:53:17
  դԻ͹ ...
2017-08-27 10:50:02
  Ѻ ͹ matlab ¹ matlab...
2017-06-03 16:27:23
  ੾зҧҴ ͧҢ...
2017-05-25 16:18:08
  ͧ˹Ѻ os ...
2017-05-25 16:12:47
  ¹ php curl ...
2017-04-20 01:04:20
  ¹ ...
2017-03-27 12:50:54
  ʧҷ ͧѾഷ...
2017-03-27 12:37:20
  Homework comment
  ͺسҡѺ...
2017-08-16 18:27:25
  ͧ ͧ ѧ ^^...
2017-04-18 18:40:46
  ͧ ͧ ѧ ^^...
2017-04-18 18:37:54
  á flowchart ѹ...
2017-04-18 17:43:33
  ҡ flowchart ...
2017-04-18 16:25:29
  kungking ӶäѺ ?...
2017-03-18 23:28:36
  ¹ʴͧ...
2017-03-06 10:56:25
  鴷ӧҹẺ ...
2016-09-06 01:00:12
  ҡҺ鴹Ѻѧ...
2016-09-05 09:31:27
  ͧ֡¹...
2016-04-22 00:47:49
  Article comment
  [b] , ...
2017-10-22 20:24:51
  [b] , ...
2017-10-22 20:24:28
  [b] , ...
2017-10-22 20:23:52
  [b] , ...
2017-10-22 20:23:09
  [b] , ...
2017-10-21 23:35:27
  [b] , ...
2017-10-20 10:05:06
  [b]5 ...
2017-10-18 08:19:17
  - ...
2017-10-18 07:17:11
  [b] ...
2017-10-18 06:07:31
  [b] 96 ...
2017-10-18 06:05:28
  9Mcode comment
  ҡ...
2014-02-21 08:52:19

Link Exchange

ѵҤɳ
Statistics of Sourcecode in Thailand
 
Ѳ SMS (ҹ 55,023)
Ԩ ͧ (9'M) : Ԩ ͧ (9'M)
e-mail: webmaster@sourcecode.in.th
mobile: 09-5009-5351
Line: suppakit.thongdee
Youtube: 9Mcode
Fanpage: Sourcecode.in.th
   
: Ŵҧ (Ŵ 5,437 )

- - - - - - - - - - - - - - ʹѺʹع- - - - - - - - - - - - - -

 
 
FreelanceѺѲ 9'M 

͹ ͧ͡ǡ͹ФѺ Ҽǹ ǹáѺ 纷ԡ sms 繵ҧ 㹡¹ Դ觢ͤ Short Message Service ѡѹ㹪 SMS Ѻ

͹蹡ѹ硹 Ըա㹡 sms 鹷Ը ¹ Դ͡ѺͶ sms ͡, ¹͡Ѻ SMS Gateway 觡·Ѻ ҡسԹ˹ ҨöҤ SMS «ͨҡҧ Operator (ӹǹԹͧ ·Һ ᾧͤ)

㹺 ʹԸա SMS ҹҧ͡Ѻ ԡ SMS ͧ䫵 http://www.applymail.com/ ռҨҧ ¹͢ Ҩ任ء Ѻҹͧաչ֧

觷سͧա͹鹷ӵкǹþѲ

  • Visual Studio .net 2003
  • ͧͧس Թ

ҷ͡ C# Ѻ 觼ͧѧѺ C# ͹ѹ 鹵͹ѹ ѧ

 

1. ӡԴԡ SMS Ѻҧ http://www.applymail.com/ 㹡úǹù س username password ҤѺ

2. ӡԴ Visual Studio .Net 2003 ͡ҧ Project ҡ File > New > Project

3. ˹ҵҧ New Project ӡ͡ Visula C# Project 㹪ͧ Templates ͡ Windows Application 㹪ͧ Name ͹ Project SendSMS ѧٻ

4. ԡ OK

5. ˹ Form1 سӡҡҧ Control TextBox 2 Button 1 麹 Form1 ѧٻ

6. 㹪ͧ textBox1 ѺѾ ·ҧ 0812345678 Ѻ㹪ͧ textBox2 繪ͧѺ û͹ͤ 㹷§ ѧҹ Ѻ

7. ӡôѺŤԡ button1 Ƿӡû͹ ѧҧ ( username ,password سѤФѺ 蹹鹨 SMS )

Private void button1_Click(object sender, System.EventArgs e)
{
	string strData;
	string strURL;
	string strResult;
	string szLanguage = "E";
	string szUsername ="username";
	string szPassword ="password";

			
	strData = "msisdn="+this.textBox1.Text+"&user="+szUsername+"&pass="
		+szPassword+"&lang="+szLanguage+"&msg="+this.textBox1.Text;
	strURL = "http://smsgateway.applymail.com/cgi-bin/aspsendsms.cgi";

	System.Net.WebRequest req = System.Net.WebRequest.Create(strURL);		
	req.ContentType = "application/x-www-form-urlencoded";
	req.Method = "POST";
	byte [] bytes = System.Text.Encoding.ASCII.GetBytes(strData);
	req.ContentLength = bytes.Length;
	System.IO.Stream os = req.GetRequestStream ();
	os.Write (bytes, 0, bytes.Length); 
	os.Close ();
	System.Net.WebResponse resp = req.GetResponse();			

	System.IO.StreamReader sr = new System.IO.StreamReader(resp.GetResponseStream());
	strResult = sr.ReadToEnd().Trim();			

	strResult = strResult.Substring(strResult.IndexOf("")+8,strResult.IndexOf("")-strResult.IndexOf("")-8 );
		
	if(strResult=="OK")
	{
		MessageBox.Show("Send SMS Complete");
	}else{
		MessageBox.Show("Error to Send");
	}		
}

8. ӡ Run ͷͺ ¡á F5 ҡ˹ҵҧ١¡ س͡ŢѾͶ ͡觶֧ ¢ͤ (ѧ) 㹪ͧҹҧ

9. ӡäԡ Button1 觢ͤ բͤ駼š SMS ѧٻ

10. ѡѡ Ͷͻ·ҧ Ѻͤس令Ѻ

Ѻѡ÷ӧҹ ͧ ҧ Http Post ѧ CGI (Common Gateway Interface) ·ҧ CGI зӡõǨͺ Username , Password ͹ ҡǨͺ ١ͧ ҧ CGI зӡ͡Ѻҧ Operator ( AIS ,Dtac, Truemove, Hutch) ͨѴ觢ͤ

㹵ҧ ѧҧ ѧö ѧաèӡѴ Ǣͧͤ (ǹҡ ѧ 160 ѡ 70 ѡ) 觼ʹ ͡ʵ Ѻ

ҡ سҨ任ءҹ ѺͧسǤѺ ǾѹѺ 9M

: Ŵҧ (Ŵ 5,437 )
 

- - - - - - - - - - - - - - ʹѺʹع- - - - - - - - - - - - - -


14.207.188.129 Դ #3 (ҡ IP: 14.207.188.129)
code ͧ VB Ѻ úǹҷ˹¤Ѻ
ҡس : ͹Ѳ / power.lemon@hotmail.com [2013-12-03 16:23:10]

103.5.27.124 Դ #4 (ҡ IP: 103.5.27.124)
ͻ VB ǹк÷Ѵ
ѹҨҡ ͧ˹¡鹤Ѻ
ҡس : maddog [2013-12-21 13:40:35]

202.29.231.88 Դ #9 (ҡ IP: 202.29.231.88)
ҡ Ѻ 5 ¡ Ҥ Ҥ
ҡس : Suwanan Phoomnoi / Suwanan25380706@gmail.com [2014-01-08 10:23:57]

103.5.27.134 Դ #10 (ҡ IP: 103.5.27.134)
c++ ѹ֡Ҵ http://www.sourcecode.in.th/homeworks.php?id=2
ҡس : maddog [2014-01-18 15:30:02]

180.222.155.108 Դ #18 (ҡ IP: 180.222.155.108)
ҡ version Ѻ
ҡس : á / fsd@adsad.com [2014-04-30 16:05:06]

101.108.220.74 Դ #19 (ҡ IP: 101.108.220.74)
Ѻ API ҧԡ SMS ҡ˹Ѻ Ҩӡ encode UTF-8 ա encode Ẻ ͧ͡ API ¹Ѻ

ҧŧ UTF-8
====
byte[] bytes = Encoding.Default.GetBytes(strData);
strData = Encoding.UTF8.GetString(bytes);
ҡس : maddog [2014-05-03 09:51:29]

171.99.98.210 Դ #20 (ҡ IP: 171.99.98.210)
ѧ֡ҷਤ ö sms url ѹѤç strResult = strResult.Substring(strResult.IndexOf("") + 8, strResult.IndexOf("") - strResult.IndexOf("") - 8);
ʹ¹ url strURL = "https://member.thaibulksms.com/sms/send/";
ҡǺ https://secure.thaibulksms.com/th/login.php úǹйӷդ
ҡس : ອ / bnprpnplampop@hotmail.com [2014-09-30 15:18:12]

61.91.35.66 Դ #21 (ҡ IP: 61.91.35.66)
ԡ Դͼԡ¹ԤѺ
Թ駷 ҹҨйշش к繢ͧ
ҡس : maddog [2014-10-01 16:36:13]

27.55.144.146 Դ #36 (ҡ IP: 27.55.144.146)
͡Ըա¹ԹͶ Vb ˹¤Ѻ
ҡس : ԹԨ / winij_fs@yahoo.com [2015-12-02 00:25:44]

27.55.144.146 Դ #37 (ҡ IP: 27.55.144.146)
͡Ըա¹ԹͶ Vb ˹¤Ѻ
ҡس : ԹԨ / winij_fs@yahoo.com [2015-12-02 00:27:56]

171.96.167.45 Դ #38 (ҡ IP: 171.96.167.45)
ԹͶ س 繡ѡɳ˹Ѻ
-ҡѵ سͧ¹Դ͡Ѻ gsm module API ҡԡ( google ҤѺ)
-ҹ API ͧҹ¹ api ҡ˹
ҡس : maddog [2015-12-02 15:58:57]

27.55.200.166 Դ #39 (ҡ IP: 27.55.200.166)
ͺسйͧԹͶͤѺ..ʹ㨡¹ԹҡѵäѺ.㨤 Gsm module Ѻ äѺ
յҧ (¹Vb) ֡ҤѺ
ҡس : ԹԨ / winij_fs@yahoo.com [2015-12-02 20:53:41]

49.228.64.100 Դ #40 (ҡ IP: 49.228.64.100)
. ҧ¹ҹẺس ¹ C# 鴼仡Ѻ촴
ҧ鴼 Ф
żҨҡ google ǡͧԴͧ١ͧ ⪤դѺ
ҡس : maddog [2015-12-03 00:49:05]

27.55.40.85 Դ #41 (ҡ IP: 27.55.40.85)
աҾӤҭѹ͹Ѻ֡googleѧѺʹ ҧ¤Ѻ Ҽҧ繤͹ ҡͧ ͨ¤Ѻ...¹ءѹҷԵФѺ س maddog ͨԴ͹¤Ѻ
ҡس : ԹԨ / winij_fs@yahoo.com [2015-12-05 09:10:56]

49.228.70.214 Դ #42 (ҡ IP: 49.228.70.214)
ҤسѺʹ͡ ١
⨷سͧԴ gsm module ҧ ¤ Ẻ˹
ͧҹ gsm module (¡) ǡ ͧ˹ҧ ҧ բúҧ

㨡ͧͺ ¹Ѳҵ...


ͺس͹ФѺ ͧҡآҾӹ Ҩ͹
ҡس : maddog [2015-12-05 12:58:59]

27.55.68.189 Դ #43 (ҡ IP: 27.55.68.189)
ѴդѺͶѺͧԹͶͼҹ gsm Module Ѻ ͹ѧ֡ AT
COMMAND 㹡觧ҹ gsm module (յҧ֡)СѧѴԹ㨷ѫ gsm module ҷͧ
ʧͧ˹ҡͺѺ..sim gsm module sim Ẻ˹Ѻ ẺǷ令Ѻ úǹ¤Ѻ ШҧѺ¤Ѻ
ҡس : ԹԨ / winij_fs@yahoo.com [2015-12-08 17:12:16]

171.96.168.110 Դ #44 (ҡ IP: 171.96.168.110)
sim ԸѺ ǡ micro, nano (ҺФѺ size )
Ҩͧ֡仡͹ AT command 㴺ҧͧ еǨͺ GSM Module 蹹ͧѺ (ҤѺ )
ҡس : maddog [2015-12-08 18:20:54]

110.169.126.187 Դ #67 (ҡ IP: 110.169.126.187)
code ͧ VB úǹҷ˹
ҡس : yotaga / yotaga.sanam@gmail.com [2017-09-28 16:50:02]
ͺ
´

 
 
µͨ Ѻͧ macbook pro 2016 (usb-c to HDMI)
µͨ Ѻͧ macbook pro 2016 (usb-c to HDMI) ´дѺ 4K
ŧ Mini DisplayPort to HDMI Adapter ŧ Mini DisplayPort to HDMI Adapter Ѻͧ macbook air/pro, mac mini
ŧ Mini DisplayPort to HDMI Adapter Ѻͧ macbook air/pro, mac mini
µٿѧ Ъ Ѻ iPhone 7  7 Plus
µٿѧ Ъ Ѻ iPhone 7 7 Plus
ŧҡ USB-C Type  USB 3.1 Ѻ MacBook
ŧҡ USB-C Type USB 3.1 Ѻ MacBook
䢤ǧѺͧ Macbook Air/Pro
䢤ǧ Ѻͧ Macbook Air/Pro (300ҷ)
HDMI  3 ͡  1
HDMI 3 ͡ 1 (350ҷ)
Ի͹¹
¹¹ͷ
¹¹͹´
¹¹
¹¹ վʾ
¹¹
¹ҹԹء
¹¹Թ⿹
¹¹Ϊ ʤ
9M Blog ͧ͡ ¹ͧ
ԡ ҾѺԭ
OrmSin.com: ˹ѧͧҹ--չ (country crafts)
ѵҤɳ
 
Ǣͧ

Դ Visual Studio.NET 2003 Windows Vista ҧ
Tutorial
eVB Tutorial
ASP.NET Webmatrix Tutorial
J2ME Tutorial
C++  Tutorial
Java  Tutorial
PHP Tutorial
ASP Tutorial
 
ẺǨ
Freelance ѺѲ

Home - Article - Tutorial - Sourcecode - Dev Handbook - Search - WebBoard - Links - About Us

ʧǹԢԷ Ѵ͡ ӫ Ѵŧ ٻẺ Ѻ͹حҵѡɳѡ
Ţ¹ҳԪ硷͹ԡҡзǧҳԪ: 7100503002000
Copyright 2001 SourceCode.in.th