Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
aawan #1
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
-
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... -
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... -
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... -
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... -
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... -
BenForta #2
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
-
aawan #3
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



Reply With Quote

