Autore: Phil Pennock Data: To: Brian Spraker CC: exim-users@exim.org Oggetto: 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.