This shows you the differences between two versions of the page.
send_sms_to_multiple_recipients_gt2_lx800 [2017/03/27 12:18] admin created |
send_sms_to_multiple_recipients_gt2_lx800 [2017/03/28 13:09] (current) admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== How to send SMS to multiple recipients on GT2 and LX800 series ===== | + | ===== How to send SMS to multiple recipients on GT2 and LX800 series ===== |
+ | |||
+ | Multi to fields and multi numbers in to field separated by space. | ||
Using this script you will be able **send SMS to multiple recipients** on GT2, GT-S, and LX800 series. | Using this script you will be able **send SMS to multiple recipients** on GT2, GT-S, and LX800 series. | ||
Line 8: | Line 10: | ||
To: 39XXXXXX | To: 39XXXXXX | ||
To: Etc. | To: Etc. | ||
+ | |||
+ | Text body | ||
</code> | </code> | ||
Line 13: | Line 17: | ||
\\ | \\ | ||
- | ==== #1: Text body ==== | + | ==== #1: Create and save the script ==== |
- | + | ||
- | === #1.1: Create and save the script === | + | |
Save the script below into the path: <wrap hi>/etc/sms/scripts/mailmultito</wrap> | Save the script below into the path: <wrap hi>/etc/sms/scripts/mailmultito</wrap> | ||
<code> | <code> | ||
Line 52: | Line 54: | ||
$ECHO -n "$messagebody" >> $file | $ECHO -n "$messagebody" >> $file | ||
done | done | ||
- | </code> | ||
- | === #1.2: Remove processed file === | + | # Remove processed file: |
- | To remove the processed files use the command: | + | rm $1 |
- | <code> | + | |
- | rm $1 | + | |
- | </code> | + | |
- | === #1.3: Tell to SMSD that checkhandler has spooled this message === | + | # Tell to smsd that checkhandler has spooled this message: |
- | Use these commands: | + | exit 2 |
- | <code> | + | |
- | exit 2 | + | |
- | </code> | + | |
- | <code> | + | |
fi | fi | ||
- | </code> | + | |
- | <code> | + | |
exit 0 | exit 0 | ||
</code> | </code> | ||
- | === #1.4: Execute a permission change to allow execution === | + | ==== #2: Execute a permission change to allow execution ==== |
Use the command: | Use the command: | ||
<code> | <code> | ||
Line 78: | Line 71: | ||
</code> | </code> | ||
- | === #1.5: Edit SMSD configuration file === | + | ==== #3: Edit SMSD configuration file ==== |
Open the file <wrap hi>/etc/smsd.conf</wrap> and in the "**global section**" add this check handler: | Open the file <wrap hi>/etc/smsd.conf</wrap> and in the "**global section**" add this check handler: | ||
<code> | <code> |