Overview

Daily Picture Email

This is a script I wrote for my mom's birthday to send her pictures of my son on a daily basis. I didn't really intend to publish it at the time, but some other people seem interested so I'm open sourcing it.

In the config file you can specify a source e-mail address, base64 encoded password, smtp server, and port. The base64 encoded password is by no means secure, but it typically means someone looking at your screen won't immediately know your e-mail password. If you aren't technically inclined, you can base64 encode your password here.

Additionally, you must set a source folder and destination folder. The source folder is a single folder with JPG files to be sent. The destination folder is where those pictures go on your hard drive after they have been sent.

Lastly, you can specify a destination e-mail address, subject line, and message body. There are special tags for certain items in the subject and body:

  • %(br)s - Adds a line break
  • %(full_date)s - A full representation of the current date
  • %(short_date)s - A short representation of the current date
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.