Hi Anthony

We have faced a similar issue regarding sms notification of new emails.
And simply you have 2 options :

1/ Have a daemon poll the mail server every n minutes, check all accounts, if you find
a new message, grab the bits you need and the users mobile number and send the SMS out.
This is a bad way of doing it, but it does work. For one the daemon has to know or 
have access to
the username and passwords for all the mail accounts, also the message ( if imap ) 
will be marked
as seen because you have read the body. Many problems exist with this method. But it 
might be your 
only option ( see below )


2/ If you run your own SMTP system for your email, then you can add a script that is 
triggered
when a email is received for one of your local users. The SMTP daemon then delivers 
the message
as normal. All the magic is in this script, which checks whether the user has this 
feature elected
in their prefs, and then grabs their mobile number and sends out the SMS. Qmail 
provides many ways
of hooking into this mail delivery sub-system.

This method is the best, as it is triggered rather than polled. But you have to be 
running your own
SMTP server to do it this way.

I am sure other methods exists, perhaps using a forwarding or autoresponder system.

Anyway hope that helps.

-Chris B
 

> Anthony Roque Adriano wrote:
> 
> Hello Folks,
> 
> Is there any available script/code to notify via SMS a recipient once he received a 
>new mail.
> 
> What im thinking is that the SMS will contain the following info that will fit in 
>160 char
> 
> Sender email add, Subject, Body
> 
> Thanks,
> Anthony

Reply via email to