SENDING EMAILS RELIABLY AND
QUICKLY FROM YOUR CLOUD
FOUNDRY APP WITH SENDGRID
Nick Quinlan
SendGrid Developer Evangelist
!...
Hi, I’m
Nick@YayNickQ
The Story of Email
http://www.flickr.com/photos/bablu121/8430494708/
http://www.flickr.com/photos/badwsky/2227161974/
http://www.flickr.com/photos/mangakamaidenphotography/5952261057/
DKIMDomainKeys Identified Mail
SPFSender Policy Framework
DMARCDomain-based Message Authentication, Reporting & Conformance
Spam Filters
90%+ of Email Sent is
SPAM
http://www.spamhaus.org/whitepapers/effective_filtering/
22% of Legitimate Email Is
NOT Delivered
http://blog.wordtothewise.com/2013/08/return-path-releases-inbox-benchmark-study/
SendIng Mail
SMTP Transport
vs.
Web Transport
SMTP TransportSERVER SAYS: 220 some_mailserver.net ESMTP Sendmail
8.13.8/8.13.8; Tue, 6 May 2014 12:34:07 -0700
YOU SAY:  ...
HTTP Transport
POST /api/mail.send.json
Host: api.sendgrid.com
to=example@example.com&from=someone@example.com&subject=hi&...
Client Libraries
‣sendgrid-csharp
‣sendgrid-go
‣sendgrid-java
‣sendgrid-nodejs
‣sendgrid-objc
‣sendgrid-perl
‣sendgrid-php...
Sending Email With
Cloud Foundry
cf create-service sendgrid free SERVICE_NAME
cf bind-service APP_NAME SERVICE_NAME
VCAP_SERVICES=
{
"sendgrid": [
{
"name": "mysendgrid",
"label": "sendgrid-n/a",
"tags": [
"smtp"
],
"plan": "free",
"crede...
<live code>
Nick Quinlan
SendGrid Developer Evangelist
! nquinlan " @YayNickQ
SENDING EMAILS RELIABLY AND
QUICKLY FROM YOUR CLOUD
FOUNDRY APP WITH SENDGRID
Nick Quinlan
SendGrid Developer Evangelist
!...
 Sending Emails Reliably & Quickly from Your Cloud Foundry App with SendGrid (Cloud Foundry Summit 2014)
 Sending Emails Reliably & Quickly from Your Cloud Foundry App with SendGrid (Cloud Foundry Summit 2014)
Upcoming SlideShare
Loading in …5
×

Sending Emails Reliably & Quickly from Your Cloud Foundry App with SendGrid (Cloud Foundry Summit 2014)

4,551 views

Published on

Technical Track presented by Nick Quinlan, Developer Evangelist at SendGrid.

Sending email is hard. In fact, over 20% of non-spam email is never delivered. These are emails your customers and users want: password resets, purchase confirmations and more. Learn some of the pain points for delivering an email, how to overcome them and watch how to get your app running and sending email in minutes with SendGrid.

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,551
On SlideShare
0
From Embeds
0
Number of Embeds
3,026
Actions
Shares
0
Downloads
56
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Sending Emails Reliably & Quickly from Your Cloud Foundry App with SendGrid (Cloud Foundry Summit 2014)

  1. 1. SENDING EMAILS RELIABLY AND QUICKLY FROM YOUR CLOUD FOUNDRY APP WITH SENDGRID Nick Quinlan SendGrid Developer Evangelist ! nquinlan " @YayNickQ
  2. 2. Hi, I’m Nick@YayNickQ
  3. 3. The Story of Email
  4. 4. http://www.flickr.com/photos/bablu121/8430494708/
  5. 5. http://www.flickr.com/photos/badwsky/2227161974/
  6. 6. http://www.flickr.com/photos/mangakamaidenphotography/5952261057/
  7. 7. DKIMDomainKeys Identified Mail
  8. 8. SPFSender Policy Framework
  9. 9. DMARCDomain-based Message Authentication, Reporting & Conformance
  10. 10. Spam Filters
  11. 11. 90%+ of Email Sent is SPAM http://www.spamhaus.org/whitepapers/effective_filtering/
  12. 12. 22% of Legitimate Email Is NOT Delivered http://blog.wordtothewise.com/2013/08/return-path-releases-inbox-benchmark-study/
  13. 13. SendIng Mail
  14. 14. SMTP Transport vs. Web Transport
  15. 15. SMTP TransportSERVER SAYS: 220 some_mailserver.net ESMTP Sendmail 8.13.8/8.13.8; Tue, 6 May 2014 12:34:07 -0700 YOU SAY:     helo localhost.localdomain SERVER SAYS: 250 some_mailserver..net Hello ???? [???.???.???.???] (may be forged), pleased to meet you YOU SAY:     MAIL From:example@example.com SERVER SAYS: 250 2.1.0 example@example.com... Sender ok YOU SAY:     RCPT To:someone@example.com SERVER SAYS: 250 recipient <somone@example.com> OK YOU SAY:     DATA SERVER SAYS: 354 enter mail, end with line containing only "." YOU SAY:     Loons sure are cool. YOU SAY:     . SERVER SAYS: 250 message sent YOU SAY:     QUIT SERVER SAYS: 221 goodbye
  16. 16. HTTP Transport POST /api/mail.send.json Host: api.sendgrid.com to=example@example.com&from=someone@example.com&subject=hi&te xt=Loons%20sure%20are%20cool.
  17. 17. Client Libraries ‣sendgrid-csharp ‣sendgrid-go ‣sendgrid-java ‣sendgrid-nodejs ‣sendgrid-objc ‣sendgrid-perl ‣sendgrid-php ‣sendgrid-python ‣ti.sendgrid ‣sendgrid-ruby*
  18. 18. Sending Email With Cloud Foundry
  19. 19. cf create-service sendgrid free SERVICE_NAME cf bind-service APP_NAME SERVICE_NAME
  20. 20. VCAP_SERVICES= { "sendgrid": [ { "name": "mysendgrid", "label": "sendgrid-n/a", "tags": [ "smtp" ], "plan": "free", "credentials": { "hostname": "smtp.sendgrid.net", "username": "QvsXMbJ3rK", "password": "HCHMOYluTv" } } ] }
  21. 21. <live code>
  22. 22. Nick Quinlan SendGrid Developer Evangelist ! nquinlan " @YayNickQ
  23. 23. SENDING EMAILS RELIABLY AND QUICKLY FROM YOUR CLOUD FOUNDRY APP WITH SENDGRID Nick Quinlan SendGrid Developer Evangelist ! nquinlan " @YayNickQ

×