<addendum> you may also get your MTA to have catch-all kind of account that can accept every email coming it's way even if pop box doesn't exists. This method will not force you to create pop boxes for so many numbers.
</addendum> The solution dependes upon your business use-case. >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Behalf Of Navjot Singh >Sent: Wednesday, May 12, 2004 9:48 PM >To: [EMAIL PROTECTED] >Subject: RE: Email to SMS gateway > > >Hi David, > >2 ways to do it assuming you have created the pop-boxes for the all the >mobile numbers that you wish to handle. > >1. Write a plugin for your MTA that checks the To: header of >incoming email, >and trigger some other file/uri. Most probably, you would write in C. > >2. Write a cron that checks the mailbox (implementation differs for mbox or >maildir format) every 5 minutes or so. Then sends the SMS out (again by >invoking some file/uri). You could write in any (java/python/perl/c is my >order :-) language. > >HTH ><navjot/> > > >>-----Original Message----- >>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >>Behalf Of David E. Meier >>Sent: Wednesday, May 12, 2004 9:22 PM >>To: [EMAIL PROTECTED] >>Subject: Re: Email to SMS gateway >> >> >>Thanks for the suggestion Sean, however, I am looking for a solution to >>send an SMS triggered by an email. >> >>Dave >> >>> I've seen lots of requests on how to handle Email routing with Kannel. >>> Heres a cheap and cheerful and short PHP script that will route an SMS >>> that starts with "mail" followed by "[EMAIL PROTECTED]" to the target >>> email address. >>> >>> <HTML> >>> <BODY> >>> <FORM METHOD="POST" ACTION="<?php print("$PHP_SELF"); ?>"> >>> <INPUT TYPE="text" NAME="madd"> >>> <INPUT TYPE="text" NAME="text"> >>> </form> >>> >>> <?php >>> >>> $subject = "SMS to Email Service from TopUp.ie"; >>> $mailsend = mail("$madd", "$subject", "$text"); >>> print("$mailsend"); >>> print("Your message has been Emailed to "); >>> print ("$madd"); >>> ?> >>> >>> </body> >>> </html> >>> >>> Put this in the Services section of your conf file >>> >>> # SMS SERVICE >>> group = sms-service >>> keyword = mail >>> get-url = "http://topup.ie/mail.PHP?mpn=%p&madd=%s&text=%r" >>> max-messages = 0 >>> >>> Hope this helps someone. Thanks to all of the users that helped me to >>> get to grips with Kannel. >>> >>> Regards, >>> >>> Sean Bracken, >>> >>> [EMAIL PROTECTED] >>> >>> http://topup.ie >>> >>> >>> >>> >>> >>> >>> >>> On Wed, 2004-05-12 at 15:17, David E. Meier wrote: >>>> Does anyone have infos, suggestions or even scripts to send >out SMS upon >>>> incoming emails using kannel? >>>> >>>> We would like to set up an account that accepts emails with >addresses in >>>> the format <phoneno>@<gateway-domain>.<tld>. The SMS notification would >>>> then be sent to <phoneno> along with subject, sender, some message body >>>> or >>>> so. >>>> >>>> I am familiar with SIEVE filtering language by Cyrus IMAPd, however the >>>> message body cannot retrieved with this approach (yet). What about >>>> procmail or other solutions? >>>> >>>> Thanks. Dave. >>> >>> >> >> >> > > >