How to use SMS Gateways in MX 7?

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default How to use SMS Gateways in MX 7?

    Hi,

    I have downloaded the developer's edition of MX 7.0 and am evaluating it
    before I recommend my company to purchase the Enterprise edition.

    Anyway, I am interested in the SMS Gateway functionality. I got the SMS Test
    Server running and was able to run and test the BookClub SMS Application that
    came with MX 7.0.

    Now I'm trying to see if I can send SMS messages to my cellphone.
    Is this possible if I only have the Developer edition?
    If so, what do I need to do to send messages to my cellphone?
    I tried modifying the config file and setting the address-range value to my
    cellphone number.

    Then I copied the following sample code from the CF Developer's Guide and
    entered my phone number as a value for the variable: msg.destAddress

    The documentation is not clear on what needs to be done to make this possible,
    and there are no tutorials that explain it either.

    Any help would be greatly appreciated.

    Thanks,
    Ali



    <h3>Sending SMS From a Web Page Example</h3>
    <cfif IsDefined("form.oncethrough") is "Yes">
    <cfif IsDefined("form.SMSMessage") is True AND form.SMSMessage is not "">
    <h3>Sending Text Message: </h3>
    <cfoutput>#form.SMSMessage#</cfoutput><br>
    <cfscript>
    /* Create a structure that contains the message. */
    msg = structNew();
    msg.command = "submit";
    // instead of 5551212 I have actually entered my cellphone number with
    area code. I don't know if I need to enter a '1' before the area code
    msg.destAddress = "5551212";
    msg.shortMessage = form.SMSMessage;
    ret = sendGatewayMessage("SMS Menu App - 5551212", msg);
    </cfscript>
    </cfif>
    <hr noshade>
    </cfif>
    <!--- begin by calling the cfform tag --->
    <cfform action="smstest.cfm" method="POST">
    SMS Text Message: <cfinput type="Text" name="SMSMessage" value="Sample text
    Message" required="No" maxlength="160">
    <p><input type = "submit" name = "submit" value = "Submit">
    <input type = "hidden" name = "oncethrough" value = "Yes">
    </cfform>
    </body>
    </html>

    aawan Guest

  2. Similar Questions and Discussions

    1. Event Gateways missing from CF Administrator
      I see other people have had this issue but I have not seen a solution posted ... I do not have any "Event Gateway" options in my CF Administrator...
    2. Event Gateways
      Each hosting company is different so you will have to ask them. There is a way to add the event gateway with the adminapi, but you still need to...
    3. ColdFusion Event Gateways Macrochat
      ColdFusion Event Gateways Macrochat Wednesday, March 16, 2005 12:00 PM - 1:00 PM US/Eastern Join Macromedia Senior Software Engineer Tom Jordahl...
    4. Event gateways - IM and webpage chat
      Does anyone know if it is possible using the new event gateways in Coldfusion MX7 to have a live chat between a webpage and an a instant message...
    5. Multiple Default Gateways Defined
      Hi gurus, first I'd like to mention I'm a beginner with AIX, so please be nice to me if my question is basic: we have an AIX 5.1 which...
  3. #2

    Default Re: How to use SMS Gateways in MX 7?

    To connect to the SMS networks you'll need an account with a provider. You need
    to contact your telco for this, and they charge for the account (or the use of
    it). Then you modify the cfg file to use the real SMS server instead of the
    CFMX7 test SMS server.

    BenForta Guest

  4. #3

    Default Re: How to use SMS Gateways in MX 7?

    Thanks Ben,

    That's what the guys on the cf-talk list told me also.
    I have most of your books since cf4.0 advanced development. For the longest
    time the 4.0 guide served as my non-official cf manual, even on through cf 5.
    Thanks for taking the time out of your busy schedule to answer my question.

    Always great to read your pearls of wisdom.

    Thanks,
    Ali

    aawan Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139