User Tools

Site Tools


Forwarding emails via SMS to multiple recipients

This guide illustrates how to forward an email to multiple SMS recipients, using the SMS gateway.

The first step is to place the script email2smsmult, downloadable 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:

Original: /etc/sms/scripts/email2sms
Modified: /etc/sms/scripts/email2smsmult

Finally, you have to create the files needed by the script (giving them right permissions) using the commands:

touch /var/log/iterator.txt
touch /var/log/numbers.txt
touch /var/log/numbers1.txt

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 listed:


   To: NUM1,NUM2,NUM3,...

   Text of the message 

:id1: Remember to activate the “SMS gateway” from the Control Panel.

mailtosms_multi.txt · Last modified: 2016/06/14 18:35 (external edit)