SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Fri Apr 19, 2024 20:30
SMSTools3 Community » Help and support Bottom

[answered] Email to sms or SMS to email

  This topic is locked

Page:  1

Author Post
Member
Registered:
Nov 2010
Location: Malaysia
Operating system name and version: Centos 5.5
Version of smsd: 3.1.14
Smsd installed from: sources
Name and model of a modem / phone: K550i Sony Ericson
Interface: USB

Hi Keke,

I also look for email to sms or reverse way feature. Does smstoolv3 engine already have a script to do that? Or I need to write extra script to pass received email to sendsms and received sms to sendmail?

Thanks

Regards

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Sorry for the late reply. (:

Check this topic: email2sms-ucs: international version of email2sms. This script may be useable for you, but in most cases custom script is required. For example some want to send only the subject as SMS and so on.

In the receiving side the SMS can be forwarded to email using an eventhandler. In the scripts directory of a package there is smsevent which contains two samples:

#This sends all received SM to an eMail receiver:
if [ "$1" = "RECEIVED" ]; then
  /usr/sbin/sendmail username@localhost <$2
fi
 
'bash' Syntax Highlight powered by GeSHi


#This sends all received SM to eMail receiver. The recipient address
#must be the first word of the SM.

if [ "$1" = "RECEIVED" ]; then
  receiver=`cat $2 | grep '^.*@.*' | sed -n 1p | cut -f1 -d' '`
  if [ $receiver ]; then
    /usr/sbin/sendmail $receiver < $2
  fi
fi
 
'bash' Syntax Highlight powered by GeSHi


You probably will need a custom script in the receiving side too, but hopefully you can start with existing samples.

  This topic is locked

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.