Sends you an email every day, prompting you to write a diary entry. Email responses are saved in a database.
- Click on the Heroku Button to create your app.
- Run the database migrations:
heroku run rake db:migrate -a your-app-name
- Configure Mailgun, by first opening up the addon SSO, then in the Mailgun interface add a new route.
heroku addons:open mailgun -a your-app-name
- Configure the Heroku scheduler to send out the daily emails.
heroku addons:open scheduler
- Lastly set some configuration variables. Set
TO_EMAIL
to your email address, andFROM_EMAIL
to the email address Mailgun generated for you.
heroku config:set TO_EMAIL=test@example.com
heroku config:set FROM_EMAIL=oped@appid.mailgun.org
To test Oped, run rake prompt
. An email should be sent to you. Any replies to this email will be saved in the posts
table.
heroku run rake prompt
To exports posts:
# Table Preview
heroku run rake posts:table | less
# Export to CSV
heroku run rake posts:csv > posts.csv