Keywords: Mode: All keywords (AND) |
Tue Aug 05, 2014 17:37
|
micka: Thanks,
I have one more question:
how to add subject text to mail?
when i used : echo -n "$message" | /usr/sbin/sendmail "$EMAIL" in email shows that mail recieved from my email (from config), but subject field is empty.
when i use : echo -n "$message" | mail -s "subject" "$EMAIL" , in email shows that mail recieved from root, and subject is good, but i don't show recieved sms text.
|
Sat Aug 02, 2014 18:20
|
micka: Operating system name and version: Ubuntu 12.04 LTS
Version of smsd: 3-3.1.15
Smsd installed from: from web
Name and model of a modem / phone: teltonika CM1100 modem
Interface:USB
Hi,
when i using this script:
smstools3.kekekasvi.com/topic.php?id=505
i have recieved this error /usr/local/bin/smsd_eventhandler.sh: line 8: formail: command not found
FROM=`formail -zx From: < $2`
when i change FROM=`formail -zx From: < $2` to FROM='formail -zx From: < $2' or FROM="formail -zx From: < $2" it's send info to mail, but text is distorted.
example:
subject: New SMS received from formail -zx From: < $2
body: cat $2
I need that all the sms content to be ported to mail a letter body , and in subject will show phone number.
can someone help?
|