Create Remember the Milk task from commandline (Windows)

This is just a cheap hack until I can get something better working with the Remember the Milk API.

You’ll need to get your own web hosting that supports PHP, and set up an email alias for your Remember the Milk inbox.

Save this php script onto your server, and give it a name that’s not easily guessable (to avoid abuse).

<?php
$task = $_GET["task"];
mail("your-secret-email@rmilk.com", $task, "", "From: rtmscript@yourwebsite.com");
echo "Posted task: '$task' ";
?>

Put this command into rtm.bat, and save somewhere in your PATH:

start "rtm" "http://yourwebsite.com/your_rtm_script.php?task=%*"

Add a task by running

rtm <your task name>

Leave a Reply