HANDLING INCOMINGEMAILS TO A RAILS APPMARKUS NORDINDEVCORNER #15torsdag 2 maj 13
GRIDDLERGem by Thoughbotwww.github.com/thoughtbot/griddlerBased on Sendgrid Parse APIhttp://sendgrid.com/docs/API_Referenc...
CONFIGURATION3 SUPER EASY STEPStorsdag 2 maj 13
SET UP MX RECORDMX record that points to mx.sendgrid.nettorsdag 2 maj 13
SENDGRID PARSE APIReceives the emailSend a POST to URI with theemailGriddler by default uses[domain]/email_processorGriddl...
class	  EmailProcessor	  	  def	  self.process(email)	  	  	  	  #	  all	  of	  your	  application-­‐specific	  code	  	  ...
Griddler::Email	  methods.to.from.subject.body.raw_text.raw_html.raw_body.attachments.headers.raw_headersEMAIL PROCESSORto...
UP TO SPEEDNOW ALSO REGISTERS THROUGH EMAILS!To: register@uptospeed.seFrom: Your Mynewsdesk emailBody:n	  learning(s)n	  w...
THANKS!MARKUS NORDIN - DEVCORNER #15torsdag 2 maj 13
Upcoming SlideShare
Loading in …5
×

Incoming emails with Griddler

611 views

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
611
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
2
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Incoming emails with Griddler

  1. 1. HANDLING INCOMINGEMAILS TO A RAILS APPMARKUS NORDINDEVCORNER #15torsdag 2 maj 13
  2. 2. GRIDDLERGem by Thoughbotwww.github.com/thoughtbot/griddlerBased on Sendgrid Parse APIhttp://sendgrid.com/docs/API_Reference/Webhooks/parse.htmltorsdag 2 maj 13
  3. 3. CONFIGURATION3 SUPER EASY STEPStorsdag 2 maj 13
  4. 4. SET UP MX RECORDMX record that points to mx.sendgrid.nettorsdag 2 maj 13
  5. 5. SENDGRID PARSE APIReceives the emailSend a POST to URI with theemailGriddler by default uses[domain]/email_processorGriddler handles the request andinvokes...torsdag 2 maj 13
  6. 6. class  EmailProcessor    def  self.process(email)        #  all  of  your  application-­‐specific  code        #  here  -­‐  creating  models,  processing  #  reports,  etc    endendEMAIL PROCESSORtorsdag 2 maj 13
  7. 7. Griddler::Email  methods.to.from.subject.body.raw_text.raw_html.raw_body.attachments.headers.raw_headersEMAIL PROCESSORtorsdag 2 maj 13
  8. 8. UP TO SPEEDNOW ALSO REGISTERS THROUGH EMAILS!To: register@uptospeed.seFrom: Your Mynewsdesk emailBody:n  learning(s)n  workout(s)torsdag 2 maj 13
  9. 9. THANKS!MARKUS NORDIN - DEVCORNER #15torsdag 2 maj 13

×