Keywords: Mode: All keywords (AND) |
Mon Feb 21, 2011 11:06
|
just4trip: Great Thanks For fixing all bugs.
Everything is OK.
:D
|
Mon Feb 21, 2011 09:28
|
just4trip: Now I receive all sms like this:
From: 417XXXXXXXXX
From_TOA: D0 alphanumeric, unknown
From_SMSC: 419XXXXXXXX
Sent: 11-02-21 09:49:03
Received: 11-02-21 09:49:44
Subject: SMSBOX
Modem: SMSBOX
IMSI: 22888880760546
Report: no
Alphabet: ISO
Length: 29
But i could not see the content of the sms forwarded.
Witch parameter is missing in the script?
Thanks !
|
Mon Feb 21, 2011 08:55
|
just4trip: Hello Keke,
Sorry for reply late.
I try your suggestion and it works well.
But i would like to know what was wrong in the preview script? (for experience!! :D )
Thank you.
|
Fri Feb 18, 2011 09:24
|
just4trip: Operating system name and version: Debian on Atmel architecture (FoxG20 device)
Version of smsd: 3.1.14
Name and model of a modem / phone: Netus FoxBoard G20
Interface: serial ttyS1
Hello keke,
I got sms server tools 3 and installed it correctly. It works well. I can send sms, multiple recipients etc..
But i have some difficult to setup sms2email function. I setup on my debian OS an exim4 tool with google smarthost as smtp. I can send mail to my account in command line as well. But when i put the same command in to eventhandler script file like this , i don't receive the mail.
eventhandler = /usr/local/bin/smsd_eventhandler.sh
#!/bin/bash
EMAIL="username@gmail.com"
if [ "$1" == "RECEIVED" ]; then
if [ -n "$EMAIL" ]; then
FROM=`formail -zx From: < $2`
sms=`cat $2`
message="From: sms@localhost
To: $EMAIL
Subject: New SMS received from ${FROM}
${sms}"
echo -n "$message" | /usr/bin/mail "$EMAIL"
fi
fi
Could you help me please?
What i am doing wrong? The mail program is locate in /usr/bin/mail path.
And i could send simple test mail like this :
echo -n "message" /usr/bin/mail Test -s username@gmail.com.
Thank you. :'(
|