Pro Yearly is on sale from $80 to $50! »

Email Parsing: what it is and what it means for your product

Email Parsing: what it is and what it means for your product

by Tyler Nappy @ APIStrat 2014 in Chicago

Transcript

  1. Parsing Emails Tyler Nappy Developer Evangelist @tylernappy tyler@mailjet.com

  2. About Mailjet Founded in 2010 +25,000 clients +60 employees in

    6 countries Twitter → @mailjet
  3. Marketing + Transactional = All in one

  4. marketing newsletters product updates many recipients ...

  5. transactional notifications password reminders one recipient ...

  6. and you get real- time analytics poll our server or

    let us push to yours
  7. REST API! With wrappers in many languages: PHP, Ruby, Java,

    NodeJS dev.mailjet.com
  8. REST API! With wrappers in many languages: PHP, Ruby, Java,

    NodeJS dev.mailjet.com Send email Receive email Get statistics Real-time analytics SMTP relay Contact lists A/X testing
  9. Parse API Dissect contents of incoming email Know who is

    sending, and what they are saying Build this feature into your app for seamless email communication
  10. How to create webhook POST request to Mailjet’s Parse API

    endpoint Params: URL email address to send to
  11. Webhook ‘to’ ‘from’ ‘subject’ ‘body’ ‘header 1’ ‘header 2’ .

    . . ‘header n’ Email address
  12. Webhook Email address ‘header n’ ‘to’ ‘from’ ‘subject’ ‘body’ ‘header

    1’ ‘header 2’ . . . Params HTTP POST
  13. Webhook Email address ‘header n’ ‘to’ ‘from’ ‘subject’ ‘body’ ‘header

    1’ ‘header 2’ . . . Params
  14. How we do this

  15. How we do this Postfix Free Pascal-compiled software POST Request

    Email Mailjet
  16. Who else is using this?

  17. Who else is using this? ...or something very similar

  18. Who else is using this? ...or something very similar Facebook

    Craigslist AirBnB FrontApp
  19. Who else is using this? ...or something very similar Facebook

    Craigslist AirBnB FrontApp Anyone who does “reply to this email to comment” sort of thing
  20. Use Cases ...

  21. Comment on a post directly from email

  22. Comment on a post directly from email Why?

  23. Comment on a post directly from email Why? More comments

    Higher incentive Makes it much easier May not forget to do so later
  24. YourApp Mailjet Send API User Mailjet Parse API 1 2

    3 4 1 2 3 4 YourApp creates random string ‘XXXXXXXX’ and stores in database Mailjet sends an email with: From: yourappXXXXXXXX < yourapp-sender-email@yourapp.com> To: recipient@example.com Reply-to: yourappXXXXXXXX < parseapi-emailaddress@parse-in1.mailjet.com> User replies to email thus sending to Mailjet’s Parse API email address Parse API does POST request. YourApp checks to see what ‘XXXXXXXX’ this post corresponds to, and performs performs appropriate actions on their end
  25. Anonymous messaging

  26. Anonymous messaging Why?

  27. Anonymous messaging Why? May not want users to know contact

    information
  28. YourApp Mailjet Send API User 1 Mailjet Parse API 1

    2 3 7 6 4 User 2 5 1 8 2 3 4 5 6 7 8 YourApp creates random string ‘XXXXXXXX’ and stores in database / Checks database Mailjet sends an email with: From: User 2 <yourapp-sender-email@yourapp.com> To: user1@example.com Reply-to: yourappXXXXXXXX < parseapi-emailaddress@parse-in1.mailjet.com> Subject: Conversation between User 2 and User 1 Body: <Whatever User 2 said> User 1 replies to email thus sending to Mailjet’s Parse API email address Parse API does POST request to YourApp YourApp checks to see which conversation this ‘XXXXXXXX’ corresponds to Mailjet sends an email with: From: User 1<yourapp-sender-email@yourapp.com> To: user2@example.com Reply-to: yourappXXXXXXXX < parseapi-emailaddress@parse-in1.mailjet.com> Subject: Conversation between User 2 and User 1 Body: <Whatever User 1 said> User 2 replies to email thus sending to Mailjet’s Parse API email address Parse API does POST request to YourApp
  29. Tyler Nappy Developer Evangelist @tylernappy tyler@mailjet.com Have more ideas?

  30. None
  31. None