Forum Moderators: phranque
I hope this is the correct area to post this as it sort of covers about 3, if not, my apologies! I'm a relative newbie and am looking to intergrate an SMS system into my PHP/MYSQL site but I have absolutely no clue about it and am really hoping someone could point me in the right direction. This is what I'm looking for:
1.) A user includes their SMS (mobile) number into their registratoin details.
2.) When someone sends them an email to their web based email account hosted at my domain with a specific automated pre-defined title (for example, when someone sends an email from their account to another with the title'note about blog') it automatically sends an SMS alert to the users phone with an automated script (ie. 'you have a new note').
3.) Need a system that will allow me to send unlimited SMS messages.
I'm looking either for the code or software that can carry out these requirements or a company that provides the service. Money is also unfortuantely an issue with me, so it has to be reasonablaly priced. Also, if anyone knows what sort of hardware I will need.
Thank you so much for any help you could provide!
:-)
What you are looking for is Jabber ;-) I just set this up for a customer last week, and I'm still pretty amazed at what this system is capable of. Very cool stuff, and it works with the SMS systems rather well.
Jabber is a server system that runs on your server. You have control over who gets to use it and even when. There are two main PHP classes already written for the system, both are good. It opens the need you are looking at to not only SMS, but most of the IM's as well, and can send messages to mobile phones, handhelds and all of that happy stuff. The system is interactive as well, so that the user could request the email to be sent to him, by looking at who sent it, or what the subject was, or could request another action, such as forwarding it to someone or simply deleting it. Really, the imagination is streched trying to think beyond this systems capabilites.
Here are some sites to look at to get you started in this area.
[jabber.org...]
Jabber gateway to SMS
[jabber.org...]
[phpjabber.g-blog.net...]
Good luck and have fun. This system is rocking my world.
Glenn Hefley
It looks quite complex, but that's probably just me! :-D
The only SMS app. I could find was this one:
[jabberstudio.org...]
which is written in Perl and for Polish networks (I'm in the UK). I'm not sure that it's going to be quite what I'm looking for, as I need something that will read my pre-defined email headers and automatically send out unlimited SMS. If I can somehow use Jabber to do this and 'all the hard work' (ie. without the need for me to have a GSM server/phone) I'll be thrilled, but I'm a bit lost as to how.
Anyway, thanks once again for your help!
1.)A user includes their SMS (mobile) number into their registration details.
That's the easier part, just add 2 ordinary input textboxes one (3 characters) for the operator prefix and one for the number itself just to be able to split the DB according to operators (you may also add another dropdown selection box for the mobile model and the operator, it's a valued information for a mobile database- will help you later for MMS , logos and ring tones if needed….)
2.)When someone sends them an email to their web based email account hosted at my domain with a specific automated pre-defined title (for example, when someone sends an email from their account to another with the title'note about blog') it automatically sends an SMS alert to the users phone with an automated script (ie. 'You have a new note').
This is the part: you need some costume programming to do that or you have to find a ready made SMTP server which integrate with your customers database
And the idea of sending just notifications is done like that:
You have to setup your current Email server to send a cc copy of all incoming emails to a custom SMTP server (a small script working as SMTP server, you can build it with any scripting language perl,asp,php…. And you'll find a lot of ready made smtp scripts out there but you just want the part of receiving the emails)
Every email received by your developed SMTP server should be parsed first to extract the mail fields (To, From, Subject, Body) ,and then compare the (To field) with your customers database and obtain the right mobile number for the current email address also to find if the subject is matched to the customer's chosen filter
You should have now the incoming email already parsed and the sending-to mobile number
The next step is to forward this data to an SMS gateway (you have to obtain an account with one of the Bulk sms delivery gateways and in this step you'll pay ;) – it's all around 0.06 EUR per SMS and may be more according to the customer Operator-)
Those gateways will give access to there sms Gateway through HTTP or XML connection with a unique username and password and also they will give a ready made examples and scripts to use it in your site
By using the already parsed email and the scripts from your SMS gateway you just compose a new SMS with those Main variables
- Mobile number: the customer mobile number which will receive the Notification
- SMSID: a 11 character field which is the title of the SMS message and may be you use your company name here
- SMS: the body of the SMS here you will put the email subject plus may be a part of the email Body (max 160 Char.)
After composing the message, you send the composed SMS to your customer by connecting to the SMS gateway (HTTP connection) and you create this connection by using the gateway example scripts.
Done :)
3.) Need a system that will allow me to send unlimited SMS messages.
sticky mail me if you want any further details.