Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

SMTP to HTTP - Sinatra Email Handler for Heroku (like Posterous)

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 _content
Octocat-spinner-32 mailer
Octocat-spinner-32 stylesheets
Octocat-spinner-32 views
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 README.markdown
Octocat-spinner-32 Rakefile
Octocat-spinner-32 _config.yml
Octocat-spinner-32 app.rb
Octocat-spinner-32 config.ru
README.markdown

Postable.me

Blog Anywhere via Email

SMTP to HTTP

It all boils down to that. Convert an email into a POST email request, and you're golden. But good luck setting up a scalable email server! ;) Google has stepped in an done this for us already.

The email as params looks like this:

{"cc"=>"", "body"=>"Hello World!\n\nConvert my email to a POST!\n\n<em>Super Cool</em>", "sent"=>"Tue, 24 Aug 2010 00:54:26 -0500", "sender"=>"foo@bar.com", "to"=>"lance@viatropos2.appspot.com", "subject"=>"Testing... testing!"}

That's so cool!

Install

First, you need to get up and running with Google App Engine (I know, I know). Here's a helpful getting started with GAE article on Squidoo. I followed this tutorial for setting up GAE as a CDN.

Once you get Google App Engine installed, open the terminal and check to see if the commands work:

cd postable/mailer
appcfg.py update . # deploy app
dev_appserver.py . # run dev server at http://localhost:8080/

Once you get the cdn setup, or the dev_appserver.py running, go to http://localhost:8080/_ah/admin/inboundmail. From there you an send mail.

Read the rest of the source to get going.

It should be able to send email pretty easily too. Here are the quotas/limits of sending/receiving emails on GAE.

Heroku has a Sendgrid Addon which allows you to send 200 emails/day for free. GAE lets you send 2000 emails a day for free. Both are probably more than enough for the one-man shop. But with GAE you can handle incoming emails (incoming vs. outgoing emails). You can also send email for free on heroku using gmail.

Just found this blogging. Sendgrid. Parse API.

Point a subdomain MX record to our server, we parse incoming emails and post attachments and body contents to your web forms. Useful to have uploads@subdomain.yourdomain.com or interact with users through email.

Resources

Something went wrong with that request. Please try again.