Rwintner Posted December 5, 2015 Posted December 5, 2015 I have an application that sends SMS messages to employees selected from a list. Currently I store both their mobile number and cell carrier and send an email to the respective carriers gateway. That is really becoming a nightmare as employees are hopping from company to company shopping best deals or even going prepaid. So, I want to use the IM_SendMessage function. I have an AIM account. I set up a simple 2 line script to send a message and then show the result. I get a result of 1 but no SMS goes to the specified mobile phone. I downloaded the AIM app on the mobile phone. It shows a message came in from an identified place but the message doesn't appear. Not that I want my employees to have to download the app and have an AIM account, but I thought this might be an interesting test. Any suggestions on what I may need to do?
evanseeds Posted December 10, 2015 Posted December 10, 2015 I just tested this out myself and sending a text to my phone through AIM did work, using version 2.14 of our email plugin. For typical US 10 digit phone numbers, you need to add '+1' to the beginning of the number. For example, to send a text to (555) 867-5309, you would use "+15558675309" as the recipient value. In my testing, I did find that the IM_SendMessage function doesn't do any checking on the validity of the recipient and returns 1 as long as the login credentials are correct. What value are you using as the recipient?
Rwintner Posted December 10, 2015 Author Posted December 10, 2015 (edited) I didn't have the +1. I will try that now. Thanks! Edited December 10, 2015 by Rwintner
Rwintner Posted December 10, 2015 Author Posted December 10, 2015 :-( I just tried it with the +1 added. Still nothing. Am I supposed to get an SMS like a regular text message or do I have to have the AIM app installed on my phone?
ryan360Works Posted December 14, 2015 Posted December 14, 2015 Those messages will come in as regular SMS. Can you tell me exactly what you are passing in? It looks like you are storing phone numbers in your DB and if you are storing them in typical format "(XXX)XXX-XXXX" then that will not work as the ( ) and the - will not work as part of the recipient parameter for IM_SendMessage . The recipient parameter must be in format "+1XXXXXXXXXX" .
Rwintner Posted December 16, 2015 Author Posted December 16, 2015 The tel number is correct. Here is exactly what I am using. It is a script of just this line and nothing else. Set Variable [$result; Value: IM_SendMessage( "AIM" ; "rwintner" ; "********" ; "+13108509403" ; "test message" ) ] obviously, the "***...*" is my password. I manage to log into AIM OK because if I make a change to my password or my name, it tells me so.
Recommended Posts
This topic is 3538 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now