GithubHelp home page GithubHelp logo

kunal732 / ohcardless Goto Github PK

View Code? Open in Web Editor NEW

This project forked from martyndavies/ohcardless

0.0 3.0 0.0 162 KB

I forget my cards all the time, or I just don't have any left. This app takes care of that for me.

ohcardless's Introduction

Oh, cardless!

I've either forgotten my cards, or I've run out. Either way, someone is going to ask for my details and it's a pain to write it all down because they'll probably lose it and we've all wasted our time.

So I knocked up this quick app using SendGrid and Heroku to give me a quick autoresponder on my vanity email address that will send a digital version of my business card out to whomever emails that address. It's quick to turn around and gets my details direct to their inbox.

Install

Start by cloning this repository, then follow these instructions at the command line:

$ heroku create
$ heroku addons:add sendgrid:starter
$ heroku config:set FROM_ADDRESS="[email protected]" #make sure you change this to your email
$ heroku config:set FROM_NAME="Martyn Davies (SendGrid)"
$ heroku config:set SUBJECT="My business card"
$ heroku config:set TWITTER="@martynd"
$ heroku config:set SIGN_OFF="Nice meeting you!"
$ heroku config:set SIGNATURE="MD"
$ heroku config:set CARD_IMAGE_URL="https://dl.dropboxusercontent.com/u/5857478/mycards/businesscard-back.png"

As you can see above, most of these settings are pieces of the email that gets sent out. If you want to strip this bit out and hardcode your settings then you can do.

This app supports text and HTML emails, the CARD_IMAGE_URL is used in the HTML email and can be any type of graphic (PNG is recommended), just don't make it too big... Hey, maybe the size of an actual business card. I used a copy of the proof I got from the printer for mine.

Set up SendGrid

To set up SendGrid so your newly deployed to Heroku app can receive emails and send them out properly do the following:

  1. Add an MX record to the domain to want to use for this app and set it to '10 mx.sendgrid.net'
  2. Wait up to 24 hours... :(
  3. Log into SendGrid - Your credentials can be found by running:
$ heroku config
  1. When you log in you'll be asked a few questions to set up your account, say no to them, for this project you don't need them.
  2. Click on 'Global Settings' and tick the box for 'Don't convert plain text emails to HTML', then hit Update.
  3. Change your Inbound Parse Webhook settings.
  4. Your domain is the domain that you added mx.sendgrid.net to.
  5. Your URL is your Heroku app URL with /receiver added to the end.
  6. Send an email to [email protected] and see what comes back.

Notes

This app uses the SendGrid Starter add-on that has a hard limit of 200 emails per day. If you think you'll go over this, you're an awesome networker and should probably think about remembering your cards.

ohcardless's People

Contributors

martyndavies avatar

Watchers

James Cloos avatar Kunal Batra avatar  avatar

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.