Send Self Reminders To Your Email From The Command Line
The following will allow you to send self reminders/TODO items to your Email at a specific time.
For example, if you want to remind yourself to submit an assignment at 15:20, you’ll be able to run this command to do it:
tdr “submit assignment” 15:20
This will send an Email to you, with the subject: [TODO] submit assignment. Email will be sent at 15:20.
To be able to do this, you migh need to configure your mail command (see my post about this).
Then, add this function to your ~/.bashrc file (or any file sources in bashrc):
Send Email from the Command Line using Gmail Account
Sometimes you want to send a quick/short E-mail to somebody, send a TODO item to yourself, or let a script/program Email you when it’s done. For these I found the Linux mail command very useful.
Using it is as easy as typing:
mail -s “Subject” receipt@domain.com
Then enter the message and end it with [ctrl]+[D].
However, if your ISP s!#$% like mine, you’ll discover that no mail was really sent.
To work around this, I wanted to configure my mail program to use Gmail’s SMTP server.
About Me
Tags
Categories
- Algorithms
- Bash
- BlackBerry
- Collaboration
- Command Line
- Cool Tricks
- Easter Eggs
- Ebooks
- Firefox
- Hardware
- Humor
- iPhone
- Linux
- Linux Development
- Linux Kernel
- Networks
- Open Knowledge
- Other
- Productivity
- Programming
- Regular Expressions
- Science
- Security
- Shell Scripts
- Short Posts
- Social Networks
- Thoughts
- Tools
- Vim
- Web Development
- Websites
Popular Posts
Calendar
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| « Sep | ||||||
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | |||
Archives
- September 2010 (2)
- August 2010 (2)
- July 2010 (5)
- June 2010 (1)
- May 2010 (1)
- April 2010 (3)
- March 2010 (1)
- January 2010 (1)
- December 2009 (2)
- September 2009 (13)
- July 2009 (1)
- June 2009 (6)
- May 2009 (4)
- March 2009 (18)
- February 2009 (10)
- January 2009 (10)
- December 2008 (7)
- November 2008 (8)
- October 2008 (1)
- August 2008 (1)
- July 2008 (1)
- June 2008 (1)
