How to get an SMS notifications when mail arrives

Using the advanced forwarding options on the Advanced → Rules screen, you can have an SMS sent to you when messages arrive that match a certain rule.

Note: An SMS can be a maximum of 160 characters long. Anything longer than this will be truncated; only the first 160 characters will be sent.

SMS costs

To send SMS messages, you must pre-buy SMS credits at 12 cents each. Each time you send an SMS message, a credit is deducted from your account. If you do not have enough credits at the time, the message will not be sent. You can purchase credits on the the Advanced → Purchase SMS Credits screen. You will need to have enough funds in your account before you can purchase SMS credits. You can add money to your account on the Advanced → Add Funds screen.

Note: Only paid accounts can send SMS messages.

Advanced forwarding

To forward via SMS, use the Advanced → Rules screen. Add a new forwarding rule, set the target to your phone number (including the country code), and pick one of the SMS forwarding types.

For reference, here is the complete list of the forwarding types:

If you are using either "SMS summary', "SMS squeezed summary" or "SMS subject", ensure that the "Forward to" column contains a mobile telephone number. You must include the country and area code in the number.

SMS forwarding part of a message

Sometimes you want to generate an SMS from a message, but the information you're interested in isn't in the first 160 characters of the message. For this case, there's a special syntax you can use to "extract" part of a message to forward as the SMS notification.

You have to use the "Custom" forwarding mechanism as described abose to create a custom notify call.

To forward only the first N characters of a message, you can specify $text[N]$ in the :message parameter. So for instance to forward only the first 50 characters of a message to the mobile number 12345689, you can use:

notify :method "sms" :options ["123456789"] :message "$from$ / $subject$ / $text[50]$"

You can also extract part of a message based on a regular expression to use as the forwarding text. To do that, you use a special construct before the $text$ parameter:

extract{{regular-express-with-capturing-()'s}}

So for instance, say you receive messages which contain stock quotes, but the messages contain a pre-amble you don't want to forward. You do know that just before the actual quote portion of the email, there is the text "Your stock quote is" and then the actual quote. Using a regular expression, you can capture and forward just the text after that string. The rule to do this would be:

notify :method "sms" :options ["123456789"] :message "$from$ / $subject$ / extract{{Your stock quote is(.*)}} $text[7000]$"

The text captured in the (.*) capture is what will be forwarded.

Additional notes on using this: