C# Tutorial - How to Send SMS Message C#.NET Winforms | FoxLearn

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ม.ค. 2025

ความคิดเห็น • 226

  • @umarfarooqkhan6736
    @umarfarooqkhan6736 5 ปีที่แล้ว +1

    Hi sir is this code works on mobile instead of gsm modem

  • @samehsayed2196
    @samehsayed2196 3 ปีที่แล้ว

    You are amazing bro

  • @hanescaballero5115
    @hanescaballero5115 4 ปีที่แล้ว

    Thanks for sharing the tutorial it`s worked for me... KEEP IT UP!

    • @foxlearn
      @foxlearn  4 ปีที่แล้ว

      You're welcome! Thank you !

  • @RishabhJain-dz7jt
    @RishabhJain-dz7jt 7 ปีที่แล้ว

    Its very good as it is working properly. You make my day.
    Thanks :)

    • @talharaza1246
      @talharaza1246 5 ปีที่แล้ว

      Really is it really working?

  • @manjeetnandal1
    @manjeetnandal1 5 ปีที่แล้ว

    Great thanks!

    • @foxlearn
      @foxlearn  5 ปีที่แล้ว

      Thank you !

  • @alleria48
    @alleria48 7 ปีที่แล้ว

    Hi. Are you using the usb TTL to connect the GSM modem to pc? thank you

    • @adolphin6041
      @adolphin6041 9 หลายเดือนก่อน

      May be he's using something kinda, but using TTL module with arduino and connecting arduino's usb to the computer you can use it

  • @peterjayimboy7769
    @peterjayimboy7769 6 ปีที่แล้ว

    what gms module are you using?

    • @foxlearn
      @foxlearn  6 ปีที่แล้ว

      gms modem

    • @peterjayimboy7769
      @peterjayimboy7769 6 ปีที่แล้ว

      @@foxlearn mine is returning error .. something like port is being used by another process .. how can i fix this?

    • @foxlearn
      @foxlearn  6 ปีที่แล้ว

      Have you got GMS modem? please plugin your device

  • @samerhameed7658
    @samerhameed7658 8 ปีที่แล้ว +1

    Hello, thanks a lot it works successfully, but I have a question, how can I send an Arabic message? my GSM modem supports three type of encoding (IRA,GSM and UCS2). Note I modified the code to be UCS2 but in this case the message transferred from computer to modem but it did not sent from modem to the destination. Thanks for your help and support in advance

    • @foxlearn
      @foxlearn  8 ปีที่แล้ว

      Thank you so much :)

  • @MHDHassan2023
    @MHDHassan2023 3 ปีที่แล้ว

    Can you make a video about using UCS2 C# Windows Forms

  • @brightscript
    @brightscript 3 ปีที่แล้ว

    why I can not send anther language text message like Persian with this app?

  • @creaturesolutions7670
    @creaturesolutions7670 5 ปีที่แล้ว

    hi, i write the code same as you but i have not receive a single message.
    and m also not able to send message from textlocal site.
    and in site reports sections my all sent messages status is unknown.

  • @user-ly7yc6pr8f
    @user-ly7yc6pr8f 5 ปีที่แล้ว

    Hello, how should I put the program if what I want is for the message to be sent alone without having to send it?

  • @harubayumali720
    @harubayumali720 8 ปีที่แล้ว

    can i use usb broadband modem in this program?? thanks a lot

    • @foxlearn
      @foxlearn  8 ปีที่แล้ว +1

      Yes, You can use USB 3G modem. Thanks

    • @harubayumali720
      @harubayumali720 8 ปีที่แล้ว

      thanks a lot :)

  • @iSoftInt
    @iSoftInt 5 ปีที่แล้ว +1

    First of all thanks for your help. I appreciate you works
    I'm done the works on your instruction
    and It's works properly.
    but when my message text length more than 159, It will showing some error message Looks Like "+CMS ERROR: 305"
    Could you help me please?

    • @foxlearn
      @foxlearn  5 ปีที่แล้ว

      I think it's limit message text

    • @iSoftInt
      @iSoftInt 5 ปีที่แล้ว

      @@foxlearn I know that, any solution ?

  • @muhammadnaveed5056
    @muhammadnaveed5056 6 ปีที่แล้ว

    i have SIM900a does it worked on it

  • @haydensoo8265
    @haydensoo8265 8 ปีที่แล้ว

    can i apply it on a 2013 visual studio c# web forms ?

    • @foxlearn
      @foxlearn  8 ปีที่แล้ว

      yes, not problem

  • @manuelmartised1991
    @manuelmartised1991 8 ปีที่แล้ว

    is necesary connect the módem to serial port ?

    • @foxlearn
      @foxlearn  8 ปีที่แล้ว

      Yes, You need to get a GSM modem to play demo. You can connect to GSM modem via serial port. thanks

  • @AbrarAhmad-mz8vl
    @AbrarAhmad-mz8vl 7 ปีที่แล้ว

    Hi Folk
    In my case message sent but not deliver on the phone number. How to handle Problem ?
    Im using Samsung Grand Prime Plus as GSM Modem.

  • @mianwahab5171
    @mianwahab5171 5 ปีที่แล้ว +1

    Hy, I followed your every step, then when I sent the message, It displayed the message sent dialog box. But i never recieved the message. Why is that?

    • @foxlearn
      @foxlearn  5 ปีที่แล้ว

      I think you should add your area phone, or check your code again

  • @marcusshamase2050
    @marcusshamase2050 7 ปีที่แล้ว

    i don't have the gsm modem port in my laptop. where do i find it because i tried to install the GSMCOMM

    • @foxlearn
      @foxlearn  7 ปีที่แล้ว

      Hi, You can get gsm port when installing GSM modem to your computer. Thank you

  • @mhassaan7405
    @mhassaan7405 2 ปีที่แล้ว

    my pc is not showing modem what should I do?

  • @norivincentaposaga8537
    @norivincentaposaga8537 4 ปีที่แล้ว

    Hello. I followed your code tutorial but when I hit send, the message box that appeared is the one that the message sent is failed. The phone number has the area code as well. (+63 in my area). Do you have any ideas on this? Thanks.

    • @foxlearn
      @foxlearn  4 ปีที่แล้ว +1

      I think the service doesn't support your area phone

    • @norivincentaposaga8537
      @norivincentaposaga8537 4 ปีที่แล้ว

      @@foxlearn Its working now. Thank you. Do you have any tutorials for sending multiple messages / bulk sms sending? Thank you.

    • @jay-annoliveros5358
      @jay-annoliveros5358 3 ปีที่แล้ว

      @@norivincentaposaga8537 hello, paano po sya nag work sayo?

  • @bittukumar5653
    @bittukumar5653 8 ปีที่แล้ว

    can u please send me link of video courses on window mobile app development.......its urgent
    please suggest.

    • @foxlearn
      @foxlearn  8 ปีที่แล้ว

      Hi, I haven't got the link. You can search on youtube or google. thanks

  • @bittukumar5653
    @bittukumar5653 8 ปีที่แล้ว

    how can we implement these things in c# asp.net web application project..............please suggest me,
    Thank's in advance

  • @sherwinmanguilin1173
    @sherwinmanguilin1173 8 ปีที่แล้ว +1

    hi, can you create a video tutorial for automatic reading in serial port ?? with sms sender thanks

    • @foxlearn
      @foxlearn  8 ปีที่แล้ว

      OK. Thank you for your suggestion

  • @stepbrojafz
    @stepbrojafz 8 ปีที่แล้ว

    Can I send it to Multiple Contacts Sir?

    • @foxlearn
      @foxlearn  8 ปีที่แล้ว

      You can use foreach to send multiple contact. thanks

    • @stepbrojafz
      @stepbrojafz 8 ปีที่แล้ว

      Fox Learn Thanks Sir! Can you send me the Example of that Code or Video ?
      scrow.0110@gmail.com

    • @foxlearn
      @foxlearn  8 ปีที่แล้ว

      Sent. Thanks

  • @insafide300
    @insafide300 8 ปีที่แล้ว

    Thank you a lot it works so good
    I want to know how to send the same sms to a lot of phone numbers

    • @foxlearn
      @foxlearn  8 ปีที่แล้ว +2

      Hi, You can save the phone number into .txt file, then read the file and call send method for each phone number, thanks

    • @sagarutwani4739
      @sagarutwani4739 4 ปีที่แล้ว

      @@foxlearn and how much thread.sleep(seconds) we should give for not to block the sim

  • @ameersultan1754
    @ameersultan1754 7 ปีที่แล้ว

    hy how can i get the phone call number of coming call on my C# window form application using GSM Dongle?

    • @foxlearn
      @foxlearn  7 ปีที่แล้ว

      I think you can read sms from gsm

    • @ameersultan1754
      @ameersultan1754 7 ปีที่แล้ว

      please you make this program i will be very thankful to you

  • @bittukumar5653
    @bittukumar5653 8 ปีที่แล้ว

    how to use recieved mobile message as a first time login credential in login page of asp.net..

    • @foxlearn
      @foxlearn  8 ปีที่แล้ว

      Hi, You can use twilio . thanks

    • @bittukumar5653
      @bittukumar5653 8 ปีที่แล้ว

      thank u very much for replying...

  • @celine8784
    @celine8784 4 ปีที่แล้ว

    What's the connection?

  • @gamedev3dginger821
    @gamedev3dginger821 5 ปีที่แล้ว

    Can someone help me? When i press send then i get the send failed message box.

    • @foxlearn
      @foxlearn  5 ปีที่แล้ว

      Plug in your gms modem with sim card, then play demo

  • @toidiluredao
    @toidiluredao 5 ปีที่แล้ว

    Hey bro! I really like your code but when I run it. Message show Failed! Can u help me please!

    • @foxlearn
      @foxlearn  5 ปีที่แล้ว +1

      What error are you getting?

    • @toidiluredao
      @toidiluredao 5 ปีที่แล้ว

      @@foxlearn I did it, But I want send many messages in one sms. It mean the message sequential not split mutil part. Thanks for reading!

  • @khaleed7991
    @khaleed7991 4 ปีที่แล้ว

    How to send into many numbers?

  • @AaAaa-oo9so
    @AaAaa-oo9so 7 ปีที่แล้ว

    I follow your tutorial but a message will appear that "The semaphore timeout period has expired"!

  • @meetalijutt7021
    @meetalijutt7021 6 ปีที่แล้ว

    please tell me code to sending sms with gsm to multiple numbers

    • @foxlearn
      @foxlearn  6 ปีที่แล้ว

      Thank you for your suggestion !

  • @meetalijutt7021
    @meetalijutt7021 6 ปีที่แล้ว

    Please send me code for sending sms with gsm to multiple mobiles numbers

    • @foxlearn
      @foxlearn  6 ปีที่แล้ว

      Thank you for your suggestion !

  • @danixunboxing
    @danixunboxing 5 ปีที่แล้ว

    Why you don't provide the source code??

    • @foxlearn
      @foxlearn  5 ปีที่แล้ว +1

      You can find demo code at my website. I'll try to upload all soon. thank you !

  • @meetalijutt7021
    @meetalijutt7021 6 ปีที่แล้ว

    please send me code for sending sms with to mutliple numbers

    • @foxlearn
      @foxlearn  6 ปีที่แล้ว

      Thank you for your suggestion !

  • @riskhanrizvi6653
    @riskhanrizvi6653 4 ปีที่แล้ว

    When i am trying to open my modem port it says The process cannot access the port 'COM25' because it is being used by another process
    Please help me someone

    • @otherhalfme98
      @otherhalfme98 3 ปีที่แล้ว

      Did you find a solution? I got the same msg😑

  • @danielkrudolf
    @danielkrudolf 4 ปีที่แล้ว

    Works on D-Link DWM-157 - 3G HSDPA USB adapter

    • @zeeshanahmad1240
      @zeeshanahmad1240 4 ปีที่แล้ว

      Are you sure. Because i want use it for sms alerts in c sharp software

    • @danielkrudolf
      @danielkrudolf 4 ปีที่แล้ว

      @@zeeshanahmad1240 100 % sure, because I use it exactly for sms alerting. I recommend you only to have telephone operator that offers you unlimited sms. Don't take me for a word (it was long time that I programm this app) but I think that is only 25 signs for 1 sms.

    • @zeeshanahmad1240
      @zeeshanahmad1240 4 ปีที่แล้ว

      @@danielkrudolf i neet it for pos . send invoice sms to customer and owner. and daily report SMS to owner etc

    • @zeeshanahmad1240
      @zeeshanahmad1240 4 ปีที่แล้ว

      @@danielkrudolf i think this model is not available now .recommend me any other USB modem

    • @danielkrudolf
      @danielkrudolf 4 ปีที่แล้ว

      @@zeeshanahmad1240 you could try with Mikrotik Ltap Mini (mikrotik.com/product/ltap_mini#fndtn-gallery)

  • @lucasmauri92
    @lucasmauri92 5 ปีที่แล้ว

    Hello, can u send source code pls? Thanks

    • @foxlearn
      @foxlearn  5 ปีที่แล้ว

      You can find at my site. thank you !

  • @HammadKhanYT
    @HammadKhanYT 7 ปีที่แล้ว +1

    Here is the code, but it will send "successful message" even if the GSM Modem is not connected
    try
    {
    SerialPort sp = new SerialPort();
    sp.PortName = txtPort.Text;
    sp.Open();
    sp.WriteLine("AT" + Environment.NewLine);
    Thread.Sleep(100);
    sp.WriteLine("AT+CMFG=1" + Environment.NewLine);
    Thread.Sleep(100);
    sp.WriteLine("AT+CSCS=\"GSM\"" + Environment.NewLine);
    Thread.Sleep(100);
    sp.WriteLine("AT+CMGS=\"" + txtPhone.Text + "\"" + Environment.NewLine);
    Thread.Sleep(100);
    sp.WriteLine(txtMessage.Text + Environment.NewLine);
    Thread.Sleep(100);
    sp.Write(new byte[] { 26 }, 0, 1);
    Thread.Sleep(100);
    var response = sp.ReadExisting();
    if (response.Contains("ERROR"))
    MessageBox.Show("SMS Failed");
    else
    MessageBox.Show("SMS Sent successfully");
    }
    catch (Exception ex)
    {
    MessageBox.Show(ex.Message);
    }

  • @iksoftsolution8802
    @iksoftsolution8802 5 ปีที่แล้ว

    it work but not received any sms still why?

    • @foxlearn
      @foxlearn  5 ปีที่แล้ว

      Please check your code again, i think you miss something

  • @ammars1990
    @ammars1990 4 ปีที่แล้ว

    I HAVE ONE QUESTION >>>>>HOW TO SEND ARABIC CHARACTER? AND THANK YOU

    • @brightscript
      @brightscript 3 ปีที่แล้ว

      I also have this problem, please help me too.

  • @HaithamShaabanB
    @HaithamShaabanB 8 ปีที่แล้ว

    where is the code?

    • @foxlearn
      @foxlearn  8 ปีที่แล้ว

      HI. What's your email ? Thanks

    • @HaithamShaabanB
      @HaithamShaabanB 8 ปีที่แล้ว

      +Fox Learn haithamshaabann@gmail.com

    • @foxlearn
      @foxlearn  8 ปีที่แล้ว

      Sent. Thanks !

  • @musaqadry3358
    @musaqadry3358 6 ปีที่แล้ว

    for me it is not work at all

  • @kaizartariq9531
    @kaizartariq9531 6 ปีที่แล้ว

    serialPort.WriteLine(string.Format("AT+CMGS=\"{0}\"{1}",PhoneNumber, Environment.NewLine));
    Please use this..

    • @foxlearn
      @foxlearn  6 ปีที่แล้ว

      Thank you !

  • @LamNguyen-yj5ib
    @LamNguyen-yj5ib 8 ปีที่แล้ว

    Việt Nam code ? :D tks for share.

    • @foxlearn
      @foxlearn  8 ปีที่แล้ว

      Thank you so much ^_^

  • @jenelizagasang272
    @jenelizagasang272 7 ปีที่แล้ว

    can you please send me codes

  • @user-ct5ht7ln1x
    @user-ct5ht7ln1x 2 ปีที่แล้ว

    i want send 100000 number in the same time is ther anther way

  • @rameezjaved725
    @rameezjaved725 6 ปีที่แล้ว

    MessageBox with message 'Sent Successfully' shown but i'm not receiving the message?

  • @namtranquang8081
    @namtranquang8081 4 ปีที่แล้ว

    bạn là người việt nam