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

Поделиться
HTML-код
  • Опубликовано: 17 ноя 2024

Комментарии • 226

  • @hanescaballero5115
    @hanescaballero5115 4 года назад

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

    • @foxlearn
      @foxlearn  4 года назад

      You're welcome! Thank you !

  • @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 :)

  • @RishabhJain-dz7jt
    @RishabhJain-dz7jt 6 лет назад

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

  • @umarfarooqkhan6736
    @umarfarooqkhan6736 5 лет назад +1

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

  • @MHDHassan2023
    @MHDHassan2023 2 года назад

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

  • @iSoftInt
    @iSoftInt 4 года назад +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  4 года назад

      I think it's limit message text

    • @iSoftInt
      @iSoftInt 4 года назад

      @@foxlearn I know that, any solution ?

  • @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

  • @samehsayed2196
    @samehsayed2196 3 года назад

    You are amazing bro

  • @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

  • @alleria48
    @alleria48 7 лет назад

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

    • @adolphin6041
      @adolphin6041 7 месяцев назад

      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

  • @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?

  • @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.

  • @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.

  • @muhammadnaveed5056
    @muhammadnaveed5056 6 лет назад

    i have SIM900a does it worked on it

  • @manjeetnandal1
    @manjeetnandal1 5 лет назад

    Great thanks!

  • @haydensoo8265
    @haydensoo8265 7 лет назад

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

  • @harubayumali720
    @harubayumali720 7 лет назад

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

  • @peterjayimboy7769
    @peterjayimboy7769 5 лет назад

    what gms module are you using?

    • @foxlearn
      @foxlearn  5 лет назад

      gms modem

    • @peterjayimboy7769
      @peterjayimboy7769 5 лет назад

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

    • @foxlearn
      @foxlearn  5 лет назад

      Have you got GMS modem? please plugin your device

  • @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

  • @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

  • @brightscript
    @brightscript 3 года назад

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

  • @bittukumar5653
    @bittukumar5653 8 лет назад

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

  • @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

  • @norivincentaposaga8537
    @norivincentaposaga8537 3 года назад

    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  3 года назад +1

      I think the service doesn't support your area phone

    • @norivincentaposaga8537
      @norivincentaposaga8537 3 года назад

      @@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?

  • @danielkrudolf
    @danielkrudolf 4 года назад

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

    • @zeeshanahmad1240
      @zeeshanahmad1240 3 года назад

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

    • @danielkrudolf
      @danielkrudolf 3 года назад

      @@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 3 года назад

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

    • @zeeshanahmad1240
      @zeeshanahmad1240 3 года назад

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

    • @danielkrudolf
      @danielkrudolf 3 года назад

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

  • @mhassaan7405
    @mhassaan7405 Год назад

    my pc is not showing modem what should I do?

  • @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

  • @AaAaa-oo9so
    @AaAaa-oo9so 6 лет назад

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

  • @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

  • @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

  • @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...

  • @ztieusai
    @ztieusai 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?

    • @ztieusai
      @ztieusai 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!

  • @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

  • @celine8784
    @celine8784 4 года назад

    What's the connection?

  • @khaleed7991
    @khaleed7991 4 года назад

    How to send into many numbers?

  • @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.

  • @HammadKhanYT
    @HammadKhanYT 6 лет назад +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);
    }

  • @kaizartariq9531
    @kaizartariq9531 5 лет назад

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

  • @meetalijutt7021
    @meetalijutt7021 6 лет назад

    please tell me code to sending sms with gsm to multiple 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😑

  • @meetalijutt7021
    @meetalijutt7021 6 лет назад

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

    • @foxlearn
      @foxlearn  6 лет назад

      Thank you for your suggestion !

  • @lucasmauri92
    @lucasmauri92 5 лет назад

    Hello, can u send source code pls? Thanks

    • @foxlearn
      @foxlearn  5 лет назад

      You can find at my site. thank you !

  • @meetalijutt7021
    @meetalijutt7021 6 лет назад

    please send me code for sending sms with to mutliple numbers

    • @foxlearn
      @foxlearn  6 лет назад

      Thank you for your suggestion !

  • @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

  • @danixunboxing
    @danixunboxing 4 года назад

    Why you don't provide the source code??

    • @foxlearn
      @foxlearn  4 года назад +1

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

  • @LamNguyen-yj5ib
    @LamNguyen-yj5ib 8 лет назад

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

    • @foxlearn
      @foxlearn  8 лет назад

      Thank you so much ^_^

  • @musaqadry3358
    @musaqadry3358 6 лет назад

    for me it is not work at all

  • @rameezjaved725
    @rameezjaved725 6 лет назад

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

  • @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 !

  • @jenelizagasang272
    @jenelizagasang272 6 лет назад

    can you please send me codes

  • @namtranquang8081
    @namtranquang8081 4 года назад

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

  • @user-ct5ht7ln1x
    @user-ct5ht7ln1x 2 года назад

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