Coldfusion send SMS via external website

We are using an external website to send SMS to our clients from with ColdFusion.

The external website takes the phone number and message and delivers the SMS to the client.  

The URL to the website is http://SMSCOMPANY.CODE.aw/custom/HIDDEN.php?sms_to=PHONE&msg=MESSAGE  " 

When I use the below code, only one SMS is sent.

<cfset aAr1[1][1] = '1234567'>                        <!--- Phone number --->
<cfset aAr1[1][2] = 'Message to 1234567'>      <!--- SMS message to customer --->


<cfset aAr1[2][1] = '7654321'>                        <!--- Phone number --->
<cfset aAr1[2][2] = 'Message to 7654321'>      <!--- SMS message to customer --->


<cfset aAr1[3][1] = '2222222'>                        <!--- Phone number --->
<cfset aAr1[3][2] = 'Message to 2222222'>      <!--- SMS message to customer --->


<cfset aAr1[4][1] = '3333333'>                        <!--- Phone number --->
<cfset aAr1[4][2] = 'Message to 3333333'>      <!--- SMS message to customer --->


<cfloop index="nIdx" from="1" to="#arrayLen(aAr1)#" >

      <cflocation url="http://SMSCOMPANY.CODE.aw/custom/HIDDEN.php?sms_to=#aAr1[nIdx][1]#&msg=#aAr1[nIdx][2]# " >

</cfloop>

Someone told me I should use CFTHREAD but I have never worked with CFTHREAD.


Any help is greatly appreciated
Errol FarroAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gdemariaCommented:
Do you have an issue with how long it takes each one to send?   Are you sending hundreds at a time that causes a delay?

I would only consider CFthread if you have a problem you are trying to resolve.   Others may disagree
0
Errol FarroAuthor Commented:
Do you have an issue with how long it takes each one to send? No, there is not time limitation
Are you sending hundreds at a time that causes a delay? I am only able to send one SMS using my submitted code
0
gdemariaCommented:
Then don't worry about cfthread,  cfthread allows you to spawn a separate process so your original process can keep moving.  But if you're not having any time issues, and you are only submitting one, then no need to switch
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ColdFusion Language

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.