[resolved] How to send a SMS (5 posts)

  1. otti.steinhauer
    Posted 11 months ago #

    at my plugin I'm already sending automatic mails with wp_mail() function. Now I want to send SMS and I don't know how to do that.
    I have got via a form the number of a mobile phone and I can create the message via code. So what is the best way to send the message as SMS to the number?



  2. Bob Cristello
    Posted 11 months ago #

    There are many SMS plugins for WordPress such as WordPress SMS ( https://wordpress.org/plugins/wp-sms/ ) that can do this for you. There are some paid services like Twilio that have a WordPress plugin and provide a paid service where you pay per SMS message sent.

    Another option would be to write your own code and many providers of text messaging services will provide you with php code to do this if you are a registered client with their service.

    A lot will depend on the service you use and how open your phone service provider is to allowing you to do this.


  3. otti.steinhauer
    Posted 11 months ago #

    Hello Bob,
    thank You for your help on my problem. I hav got some more questions. The plugin you suggested is very interesting At teh description are four steps to send sms:

    global $sms;
        $sms->to = array('09000000000');
        $sms->msg = "Hello World!";

    Is it possible to put this code into my plugin-code and send the sms from my own function?

    Thanks again for help and please excuse my bad English, I hope I could explain what I meant.


  4. bcworkz
    Posted 11 months ago #

    Hello Ottilie,

    That plugin, and all plugins (and other code) available through wordpress.org are all GPL licensed. You are free to copy and distribute such code in your own work provided you distribute your work under the same GPL terms.

    You should properly annotate and attribute any code you copy so the original author receives proper credit for their work.

  5. otti.steinhauer
    Posted 10 months ago #

    Hello Bob, hello bcworkz,

    thanks for your reply. I have not tested this plugin yet, but I think I will find a way to solve my problem with yout information.



You must log in to post.

About this Topic