Use Tasker to automatically send email for missed phone calls or SMS texts

Use Tasker to automatically send email for missed phone calls or SMS texts:

UPDATE 1 (Sep 22, 2012):

NOTE: This apparently only works with an unlocked screen (screen lock), since the Locale Execute Plug-in and Dpad (steps 2-4) cannot interact with the K9 program if the screen is locked!

UPDATE 2 (Dec 20, 2016):

NOTE: There are two better ways of doing this, see: a variation of Auto Send Email, or using IFTTT.

Original post follows:

I wanted my mobile phone to send me an email message if I missed a phone call in case I didn’t hear it ringing. This is not the most elegant solution (using SL4A with a python script would be cleaner), but this is easier to setup.

NOTE: You can surely make another profile similarly for received SMS or MMS messages by in step “b”, replacing with Event→Phone→”Received Text”, and in step 1, for the variable names, use %SMSRF, %SMSRN %SMSRB, %MMSRS for sender address, name, body and subject respectively! Indeed, you can use this K9 mail method anytime you need to send yourself an email message from your phone.


  1. Rooted Android phone
  2. Tasker
  3. K9
  4. Locale Execute Plug-in (but NOT the Locale application)

Note: FIRST install, run and configure K9 so it can properly send messages.

  1. New Profile, named: “Email If Miss Call”
  2. [trigger] Event → Phone → Missed Call
  3. New task, named: “Email Re Missed Call”

Steps in “Email Re Missed Call” task:

  1. Net → “Compose Email”
    • Recipient(s):
    • Subject: Missed Cell Call: %CNAME %CNUM
    • Message: Missed call on cell Phone
  2. Plugin → Execute
    Configuration → Edit
    !input keyevent 82
  3. Input → Dpad
    • Button → Up
    • Repeat → 2
  4. Input → Dpad
    • Button → Press
    • Repeat → 1
  5. Display → “System Lock”

Notes about the above steps:

    • Replace with the email address you want to send to, and tweak the subject and message however you wish.
    • If you are using a gmail account, ensure that within K9 you Bcc yourself (Menu→Settings→Account Settings→Sending mail→Composition Defaults), otherwise the message will only show up in your “sent messages” and NOT your Inbox!
    • The %CNAME and %CNUM variables are built-in by Tasker for returning the missed call’s name and number.
    • Ensure that K9 and not some other mail program is associated with sending messages from Tasker!
  1. This is using the “Locale Execute Plug-in” to simulate pressing the “Menu” button on your phone. Type this in as shown. With my testing, the “!” is necessary to give it root privileges. Note: there is no “Enter” button when done typing, just press your phone’s back button when done editing.
  2. This uses Tasker’s Dpad ability to highlight the “Send” selection in K9’s popup Menu options.
  3. This uses Tasker’s Dpad ability to select “Send”.
  4. Optional: To turn the screen off when done sending. (K9 will exit when done.)


Howto Toggle 3G and 4G on HTC Thunderbolt running CyanogenMod 7

This is something which took a long time for me to discover…

I’m running CyanogenMod 7 (or CM7, version 7.1.1, Android version 2.3.7) on a rooted HTC Thunderbolt (or TB mecha) on the Verizon network. 4G for me was not working, it was stuck in 3G mode.

Normally if you’d like to change the network setting in order to toggle between 3G and 4G, you either use something like the “Phone Info” or “LTE On/Off” apps, or dial *#*#4636#*#* on your phone, and then go to “Phone information” → “Set Preferred network type”

If you do this while running CM7, you will see one of the options as “Unknown” and there will not be any LTE options. Instead, you must use the ROM’s built-in access to this setting via:

Settings → Wireless & networks → Mobile Networks → Network Mode

From here you can set to 4G as “CDMA + LTE / EvDo“, or 3G as “EvDo only” to increase battery life.