Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. SMS APPLICATION

SMS APPLICATION

Scheduled Pinned Locked Moved C#
helptutorial
8 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shawn414
    wrote on last edited by
    #1

    Hello. I need to develop an sms application to send sms to all customers phone numbers immediately an item comes into stock. Please i need to understand the basics. How to cut out sms resellers and develop my own. please its important and urgent. Thank you for your anticipated response and clear help.\ kind regards hassan

    stay jacking

    N L N H 6 Replies Last reply
    0
    • S shawn414

      Hello. I need to develop an sms application to send sms to all customers phone numbers immediately an item comes into stock. Please i need to understand the basics. How to cut out sms resellers and develop my own. please its important and urgent. Thank you for your anticipated response and clear help.\ kind regards hassan

      stay jacking

      N Offline
      N Offline
      nilesh ubhe
      wrote on last edited by
      #2

      Hi just try out way2sms free api. use predefined commands and function to send sms

      1 Reply Last reply
      0
      • S shawn414

        Hello. I need to develop an sms application to send sms to all customers phone numbers immediately an item comes into stock. Please i need to understand the basics. How to cut out sms resellers and develop my own. please its important and urgent. Thank you for your anticipated response and clear help.\ kind regards hassan

        stay jacking

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        For a heads-up, you need to get a GSM modem (or a CDMA modem), attach it to your PC and use the API provided with the modem to send SMS. And do not use words like "important" or "urgent" here. People in CP help others in their leisure, it may be urgent for you, but not for us here.

        1 Reply Last reply
        0
        • S shawn414

          Hello. I need to develop an sms application to send sms to all customers phone numbers immediately an item comes into stock. Please i need to understand the basics. How to cut out sms resellers and develop my own. please its important and urgent. Thank you for your anticipated response and clear help.\ kind regards hassan

          stay jacking

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          Don't cross post. Read the forum guidelines. Pick one forum and use it.


          I know the language. I've read a book. - _Madmatt

          1 Reply Last reply
          0
          • S shawn414

            Hello. I need to develop an sms application to send sms to all customers phone numbers immediately an item comes into stock. Please i need to understand the basics. How to cut out sms resellers and develop my own. please its important and urgent. Thank you for your anticipated response and clear help.\ kind regards hassan

            stay jacking

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Hello shawn414, try to see this excellent article, I hope it can help you and give you the basis on which to build. Send a Text Message to a Cell Phone from a VB.NET Application[^] Bye

            Carmelo La Monica

            H 1 Reply Last reply
            0
            • L Lost User

              Hello shawn414, try to see this excellent article, I hope it can help you and give you the basis on which to build. Send a Text Message to a Cell Phone from a VB.NET Application[^] Bye

              Carmelo La Monica

              H Offline
              H Offline
              Herboren
              wrote on last edited by
              #6

              I actually used this feature provided in VB.NET, as a project for a break alarm here at work. It was made to notify people of the breaks about to end 5-10min prior to the end of the break. Of course it was used through via Email the mobile number. So the down side is, is that people had to use their email account credentials to setup the automatic notification. Of course the contrast in this to match what he expects would to be setting up a generic email account and of course applied directly to the code for the notification. At least that is my 2 copper. The implementation is very easy and with just a few lines of code. Use c# > vb for better management. But for unfamiliarity use the vb.net

              1 Reply Last reply
              0
              • S shawn414

                Hello. I need to develop an sms application to send sms to all customers phone numbers immediately an item comes into stock. Please i need to understand the basics. How to cut out sms resellers and develop my own. please its important and urgent. Thank you for your anticipated response and clear help.\ kind regards hassan

                stay jacking

                H Offline
                H Offline
                Herboren
                wrote on last edited by
                #7

                Code for VB.NET

                Try
                Dim insMail As New MailMessage()
                With insMail
                .From = strFrom
                .To = strTo
                .Subject = strSubject
                .Body = strBody
                .Cc = strCC
                If Not strAttachments.Equals(String.Empty) Then
                Dim strFile As String
                Dim strAttach() As String = strAttachments.Split(";")
                For Each strFile In strAttach
                .Attachments.Add(New MailAttachment(strFile.Trim()))
                Next
                End If
                End With

                If Not strSMTPServer.Equals(String.Empty) Then 
                  SmtpMail.SmtpServer = strSMTPServer 
                End If 
                 
                SmtpMail.Send(insMail) 
                

                Catch e As Exception
                Console.WriteLine(e.Message)
                End Try

                Then pick from the list in which your employees have the provider: SMS Gateway Listing The code is easily converted to c#

                1 Reply Last reply
                0
                • S shawn414

                  Hello. I need to develop an sms application to send sms to all customers phone numbers immediately an item comes into stock. Please i need to understand the basics. How to cut out sms resellers and develop my own. please its important and urgent. Thank you for your anticipated response and clear help.\ kind regards hassan

                  stay jacking

                  H Offline
                  H Offline
                  Herboren
                  wrote on last edited by
                  #8

                  using System;
                  using System.Collections.Generic;
                  using System.ComponentModel;
                  using System.Data;
                  using System.Drawing;
                  using System.Linq;
                  using System.Text;
                  using System.Windows.Forms;
                  using System.Net.Mail;

                  namespace EmailSMS
                  {
                  public partial class Form1 : Form
                  {
                  public Form1()
                  {
                  InitializeComponent();
                  }

                      private void button1\_Click(object sender, EventArgs e)
                      {
                          try
                          {
                              MailMessage SMS = new MailMessage();
                              SmtpClient SMTP\_Server = new SmtpClient(SMTP\_Server\_Name);
                  
                              // Use Generic Account information
                              SMTP\_Server.Credentials = new System.Net.NetworkCredential(userName, password);
                              
                              // Who its from
                              SMS.From = SMS\_From;
                  
                              // Who its going out to
                              SMS.To = SMS\_To; // (areacode+prefix+suffix) or 5558675309@txt.att.net
                  
                              // Subject of SMS
                              SMS.Subject = SMS\_Subject;
                              
                              // Message/Body to SMS
                              SMS.Body = SMS\_Body;
                  
                              
                              // SMTP Port
                              SMTP\_Server.Port = SMTP\_Port;
                              
                              // SSL Enable
                              SMTP\_Server.EnableSsl = true OR false;
                  
                  
                              // SMS Sent
                              SMTP\_Server.Send();
                  
                  
                              // SMS Notification Sent Shown
                              MessageBox.Show("SMS St Successfully!");
                  
                  
                          }
                          catch (Exception ex)
                          {
                              MessageBox.Show("Error while trying to send SMS.\\n\\nError: ", ex.ToString());
                          };
                      }
                  }
                  

                  }

                  In C#, Cutting out the SMS re sellers is like telling your employees to give up their carriers and switch to yours when you can't provide a reliable service. Use the generic email system, it helps and is less of a hassle. What I provided is a breakdown of what you can accomplish with the code. Its not much, so make use of it.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups