sending a text message to phone when receiving email

Andrew Moore amoore at mooresystems.com
Fri May 21 16:31:34 CDT 2004


On Fri, May 21, 2004 at 11:04:55AM -0500, JARiley at dstsystems.com wrote:
> Using sendmail on SuSe 8.x.
> 
> What kind of script or config can I setup to have my system email my phone 
> a text message with subject line of incoming emails, etc.??
> 

I'd use a procmail script to forward the subject lines to an email
address that gets delivered to your pager. Something like this, perhaps:

PAGER=8165551234 at pagercompany.com
SENDMAIL=/usr/sbin/sendmail
FORMAIL=/usr/bin/formail
ECHO=/bin/echo

:0 c
* ^TOjariley
 {
  FSUB = `$FORMAIL -xSubject:`; FFROM = `$FORMAIL -xFrom:`
  :0hw
  |  $ECHO "To: $PAGERnFrom: $FFROMnSubject: $FSUBnnhome" | $SENDMAIL -t
 }

Hope it helps.

-Andy




More information about the Kclug mailing list