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

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Brian Spraker
Ημερομηνία:  
Προς: exim-users@exim.org
Αντικείμενο: Re: [exim] Send SMS Text Message Upon Incoming E-Mail




________________________________
From: Phil Pennock <exim-users@???>
To: Brian Spraker <spraker@???>
Cc: "exim-users@???" <exim-users@???>
Sent: Thursday, September 22, 2011 4:54 AM
Subject: Re: [exim] Send SMS Text Message Upon Incoming E-Mail

On 2011-09-21 at 09:55 -0700, Brian Spraker wrote:
> 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.


Yes.

"unseen" Router just before the real delivery one, sends an email to the
email-to-sms gateway you're using, and set "headers_only" so that the
body is not sent.  If you want some of the body, then instead set
"transport_filter" and use a command which strips the content to the
headers and then "X" amount of the body.

Or change the existing Router to use "shadow_transport" and
"shadow_condition" to invoke an external command that does whatever's
needed.

-Phil

--
## 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/

Thank you Phil.  I just discovered that problem last night.  I was getting text message notification - but the e-mails were not in my inbox!  I then added the 'unseen' as you indicated and that took care of it.  I use Horde as a webmail client and use the Vacation feature - and I had a transport/router for Vacation.  Vacation would  allow a reply to be sent to the person that send the message indicating someone is out of the office - and deliver it to the mailbox properly.  I noticed it had that 'unseen' flag so after adding it to the textmessage router, that fixed it.

Brian S.