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):
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.
STEPS TO SETUP:
Note: FIRST install, run and configure K9 so it can properly send messages.
- New Profile, named: “Email If Miss Call”
- [trigger] Event → Phone → Missed Call
- New task, named: “Email Re Missed Call”
Steps in “Email Re Missed Call” task:
- Net → “Compose Email”
- Recipient(s): firstname.lastname@example.org
- Subject: Missed Cell Call: %CNAME %CNUM
- Message: Missed call on cell Phone
- Plugin → Execute
Configuration → Edit
!input keyevent 82
- Input → Dpad
- Button → Up
- Repeat → 2
- Input → Dpad
- Button → Press
- Repeat → 1
- 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!
- 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.
- This uses Tasker’s Dpad ability to highlight the “Send” selection in K9’s popup Menu options.
- This uses Tasker’s Dpad ability to select “Send”.
- Optional: To turn the screen off when done sending. (K9 will exit when done.)