Email reminder

Oftentimes while on the road, I think of something I need to do and would like to remind myself by sending an email to myself with the task name as the email subject.

Doing that with my Android phone is not difficult, but I prefer to write a Python script to streamline it, so that I don't have to go through the hassle of selecting myself as the recipient, etc.  Here is the script:

import android
droid = android.Android()
task = droid.dialogGetInput("ToDo", "Task?", "").result
if task:
    droid.sendEmail('myself@example.com', '[ToDo] ' + task, task)

A simple five lines script can boost my productivity and also bring me back the good old feeling of programming my calculator!

No comments: