Git Product home page Git Product logo

retromail's Introduction

retromail

Email as real mail delivered to your doorstep.

Setup

First, Create a free account at Context.io and connect your gmail account to context.io through context.io's interface.

Second, Create a free account at Lob.io.

Production

If running on Heroku, do the following.

git clone https://github.com/scottmotte/retromail.git
cd retromail
heroku create
heroku addons:add scheduler
heroku addons:add sendgrid
heroku config:set CONTEXTIO_KEY=value
heroku config:set CONTEXTIO_SECRET=value
heroku config:set CONTEXTIO_ACCOUNT_ID=value
heroku config:set LOB_KEY=value
heroku config:set NAME=yourname
heroku config:set EMAIL=youremail
heroku config:set ADDRESS_LINE1="Your address"
heroku config:set ADDRESS_LINE2=value
heroku config:set ADDRESS_CITY="Your City"
heroku config:set ADDRESS_STATE=value
heroku config:set ADDRESS_ZIP=value
heroku config:set ADDRESS_COUNTRY=value
git push heroku master

Then setup, heroku to run the task.js once daily. It will look something like this.

Development

If running locally, do the following.

Install wkhtmltopdf.

brew install wkhtmltopdf
cp .env.example .env

Inside that file set your CONTEXTIO_KEY, CONTEXTIO_SECRET, and CONTEXTIO_ACCOUNT_ID. The account id is the id of the gmail account you previously added.

Also, set the values for your name and address. COUNTRY must be a 2 letter country short-name code (ISO 3316)

Lastly, run it.

node task.js

TODO

  • Support printing of photo attachments
  • Support printing of pdf attachments
  • Support printing of other types of attachments

rawr.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.