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/[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]
------------------------------------------------------------------

Reply via email to