Re: sms2email

Andreas Fink <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
On Donnerstag, Juli 10, 2003, at 03:18  Uhr, Diaa Fawzy wrote:

> hello,
>
> i would like to use Kannel to forward the received sms
> with certain keyword to a mail server. Can any body
> help...
>
> thanks in advance,
>
> Diaa

you can do this with a few lines of PHP code on a webserver.

Add something like this to your kannel.config:


group = sms-service
keyword = EMAIL
url = "http://localhost/cgi-bin/mail.php?from=%[email protected]&to=
%s&subject=SMS&text=%r"
max-messages = 0
omit-empty = true
catch-all = true



the mail.php then would be something like this:

<?
     mail("$to",$subject,$text,"From: $from\r\n");
     echo  
('<HTML><HEAD><TITLE>SMS2EMAIL</TITLE></HEAD><BODY>Sent!</BODY></ 
HTML>');
?>

Andreas Fink
Global Networks Switzerland AG

------------------------------------------------------------------
Tel: +41-61-6666333  Fax: +41-61-6666334   Mobile: +41-79-2457333
Global Networks, Inc. Clarastrasse 3, 4058 Basel, Switzerland
Web: http://www.global-networks.ch/      [email protected]
------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.