This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// HOW TO USE THIS SCRIPT: | |
// 0. Upload your photos to Google Drive. | |
// 1. Log into Google Drive, and click CREATE -> Script -> Blank Project. | |
// 2. Delete all of the default code, and paste this code into your project. | |
// 3. Customize the email parameters below to your liking (note that the quotes around each line are very important.) | |
// 4. Test the script by selecting Run -> sendRandomPic. You should receive an email with a random picture. | |
// 5. Click Resources -> Current Project's Triggers, and set up the email to run as often as you would like. | |
// Name of the folder that contains your photos. | |
// Leave blank to search your top-level folder. |