Re: [exim] Send SMS Text Message Upon Incoming E-Mail

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Brian Spraker
Date:  
À: Brian Spraker, exim-users@exim.org
Sujet: Re: [exim] Send SMS Text Message Upon Incoming E-Mail




________________________________
From: Brian Spraker <spraker@???>
To: "exim-users@???" <exim-users@???>
Sent: Wednesday, September 21, 2011 11:55 AM
Subject: [exim] Send SMS Text Message Upon Incoming E-Mail

Hello all,

Appreciate you taking the time to look at my question.

I have a site that receives inquiries on.  Instead of sitting at the computer all day to see if any come in to my mailbox, is it possible to somehow use Exim in such a way that once an e-mail comes in to a specific e-mail account, it will also send a quick SMS message to another e-mail address saying something like "You've received an inquiry"?  I know that I can certainly setup Exim to mail the full message to multiple e-mail addresses (as I already have in place) - but I only need a simple message sent to a secondary account.  Otherwise, if the whole message is sent to the SMS text e-mail address, the cellular network will have to split it up until many messages.

Thank you!
Brian S.
BsnTech Networks
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

OK - I managed to this out myself.  This is perfect for anyone that wants to be notified via an SMS text message on their phone if you get an e-mail in your account.  I'm sure there is a better way of setting this up so it is scalable and can work for multiple accounts, but this was a quick way to set it up based upon only one e-mail address.

I created a new router and a new transport:

Router:

textmessage:
  debug_print = "R: text message for $local_part@$domain"
  driver = accept
  condition = ${if eq{$local_part@$domain}{heather@???}}
  transport = textmessage


Transport:

textmessage:
  driver = autoreply
  debug_print = "T: text message for $local_part@$domain"
  to = <e-mail to send to>
  from = <e-mail from>
  text = "<SMS text message here>"

Brian S.
BsnTech Networks
http://www.bsntech.com