User Tools

Site Tools


mailtosms_group

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

mailtosms_group [2016/06/14 18:35] (current)
Line 1: Line 1:
 +===== Forwarding emails via SMS to a group of recipients =====
 +This guide illustrates how to forward an email to a group of SMS recipients, previously defined in FoxBox address book, using the SMS gateway.
  
 +Note that to use this plugin you will need to download and install the package //sqlite//, launching from terminal these commands:
 +<​code>​
 +apt-get update
 +apt-get install sqlite
 +</​code>​
 +
 +The first step is to place the script //​email2smsgrp//,​ downloadable [[http://​www.kdev.it/​email2smsgrp|here]],​ inside of the folder // /​etc/​sms/​scripts/​ //.
 +Remember to make it executable, giving it right permissions. ​
 +
 +Then you have to replace the link to the older script in // /​etc/​.procmailrc //with the new one:
 +<​code>​
 +Original: /​etc/​sms/​scripts/​email2sms
 +Modified: /​etc/​sms/​scripts/​email2smsgrp
 +</​code>​
 +
 +Finally, you have to create the files needed by the script (giving them right permissions) using the commands:
 +<​code>​
 +touch /​var/​log/​iterator.txt ​
 +touch /​var/​log/​numbers.txt
 +</​code>​
 +
 +To complete the installation,​ reboot the device.
 +
 +Now, every time you will send an email like the one in the example below, it will be automatically forwarded via SMS to all the recipients belonging to that group:
 +<​code>​
 +Subject: ​
 +   TOsms
 +
 +Body:
 +   From: YOURNAME
 +   To: GROUPNAME
 +
 +   Text of the message ​
 +</​code>​
 +
 +:id1: Remember to activate the "SMS gateway"​ from the Control Panel.
mailtosms_group.txt ยท Last modified: 2016/06/14 18:35 (external edit)