|
|
SMS Server Tools 3 Community |
Welcome, Guest. The forum is currently read-only, but will open soon. |
Fri Apr 18, 2025 05:12 |
Login and Post Reply
Page: 1
Author |
Post |
|
#1 Fri Dec 16, 2011 00:34, 162 months ago.
|
Member
Registered: Dec 2011
Location: Christchurch, New Zealand
|
Hi,
I would like to setup a multi user bi-directional email to sms gateway. Is this possible with SMS Server Tools?
I would like to enable a select group of internal email address to send emails through the gateway and if the recipient replies then the message gets sent back to the mailbox of the original sender.
I'm sure the first part is easy and in my searching I've seen how that can be done. It's the replies that I'm not sure about. Will the reply message have enough information to allow me to send back to the correct email address?
Has anyone done this and can point me to some documentation? Preferrably on a Linux system.
Thanks
David Kirk
|
|
#2 Thu Dec 29, 2011 12:57, 161 months ago.
|
Member
Registered: Apr 2011
Location: athens, Greece
|
You need to write an action for the received sms, and expand from there... Here is an example in perl. This script is called by sms3 server everytime a message is received. Receives commands, and sends replies according to content. If command is not understood, it is send to a default email. With a little coding you can do what you wish. The command ip will return ip address from interface ppp0. Modify as needed command sw will execute the linux w command and return output via sms. You can add commands as you like. Runs on centos 5.x, you might need to install perl additional modules cpan is your friend. This script has been working from me for quite some time. I have removed some custom commands that would be difficult to explain. (but might be a few code leftovers.) Some perl knowledge is required, nothing special though. Also, if the script is run by hand, it parses a text file, and sets debug to 1 so you can fix your script without actually sending sms. The file should be obtained from sms3d server incoming files. Enjoy « Last edit by stom on Thu Dec 29, 2011 12:58, 161 months ago. »
|
Login and Post Reply
Page: 1
Time in this board is UTC.
|
|
|
 |
|
 |
|