SendGrid Integration

159 views
Skip to first unread message

Joshua Smith

unread,
Jul 24, 2013, 4:22:13 PM7/24/13
to google-a...@googlegroups.com
Dunno how I missed this, but given the train wreck of GAE's email delivery, this is very promising:

https://developers.google.com/appengine/articles/sendgrid

-Joshua

Dan Holevoet

unread,
Jul 24, 2013, 4:26:38 PM7/24/13
to google-a...@googlegroups.com
Hi Joshua,


Thanks,
Dan



-Joshua

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.





--
Dan Holevoet
Google Developer Relations

pdknsk

unread,
Jul 25, 2013, 10:18:11 AM7/25/13
to google-a...@googlegroups.com
Hmm is this a sign that Google will soon remove the email functionality (at least for new applications)? I've been wondering how email will work when Google removes the Google Apps requirement for domains.
Message has been deleted

pdknsk

unread,
Aug 6, 2013, 10:29:21 PM8/6/13
to google-a...@googlegroups.com
Hmm to get feature parity (plus some extra features to be fair), you need to subscribe to the $80/month package. In particular "DKIM customization", to setup DKIM records for your domain. This is available at no extra charge when you setup App Engine with a custom domain through Google Apps.

Vinny P

unread,
Aug 6, 2013, 10:47:42 PM8/6/13
to google-a...@googlegroups.com
On Tue, Aug 6, 2013 at 9:29 PM, pdknsk <pdk...@gmail.com> wrote:
Hmm to get feature parity (plus some extra features to be fair), you need to subscribe to the $80/month package. In particular "DKIM customization", to setup DKIM records for your domain. This is available at no extra charge when you setup App Engine with a custom domain through Google Apps.


 
 
+1.
 
I hope GAE's mail service isn't going anywhere - SendGrid is expensive when it comes to certain services.
 
 
 
-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com
 
 

Jay

unread,
Aug 8, 2013, 9:16:23 AM8/8/13
to google-a...@googlegroups.com
Joshua, what issues are you referring to? If I rely on GAE for bulk email, am I getting myself in trouble?

Joshua Smith

unread,
Aug 8, 2013, 9:39:32 AM8/8/13
to google-a...@googlegroups.com
Mail has never worked very well in GAE.

- Sending messages will sometimes fail for no reason, so you have to put the code to send any important messages into a task so it can retry
  (Note that since URLFetch also fails for no reason, with alarming regularity, I suspect sending email via SendGrid will need the same protections)

- The headers GAE put into the message are awful, and scary, and convince users that they are looking at spam. For example, gmail shows this one:

- Despite DKIM, SPF and friends, a lot of GAE-sourced email gets blocked by corporate spam filters

- Quotas are really tight when first getting started, and never get all that loose

- The "from" address of any email you send MUST be either an admin or a user logged in via google oauth

- Google's #1 priority with outbound email is that GAE not become a spam platform, and this colors every technical decision they make around email

And yes, if you rely on GAE for bulk email, you are definitely getting yourself into trouble.

Jeff Schnitzer

unread,
Aug 8, 2013, 11:23:24 AM8/8/13
to Google App Engine
FWIW, we recently switched to elasticemail.com after reviewing over a dozen options. So far so good, and they're pretty cheap. The biggest problem with the GAE mail system (for us) is that you can't have divergent Sender and From headers, and thus can't send email on behalf of users:

https://code.google.com/p/googleappengine/issues/detail?id=9516

We send our admin alerts out through GAE mail - that way if something goes wrong with our prod email system we will get notified.

It's good practice to use the task queue for anything that is by nature async, like sending mail. *Especially* something that requires an external connection. There's no point in making a user wait.

Jeff

Joshua Smith

unread,
Aug 8, 2013, 11:40:35 AM8/8/13
to google-a...@googlegroups.com

On Aug 8, 2013, at 11:23 AM, Jeff Schnitzer <je...@infohazard.org> wrote:

It's good practice to use the task queue for anything that is by nature async, like sending mail. *Especially* something that requires an external connection. There's no point in making a user wait.

That's true. But in my case, these emails are typically sent by cron jobs, so having to stick a task in the middle just to get retries is a PITA.

-Joshua

Vinny P

unread,
Aug 8, 2013, 4:24:37 PM8/8/13
to google-a...@googlegroups.com
On Thu, Aug 8, 2013 at 8:39 AM, Joshua Smith <Joshua...@charter.net> wrote:
Mail has never worked very well in GAE.

- Sending messages will sometimes fail for no reason, so you have to put the code to send any important messages into a task so it can retry
  (Note that since URLFetch also fails for no reason, with alarming regularity, I suspect sending email via SendGrid will need the same protections)

- The headers GAE put into the message are awful, and scary, and convince users that they are looking at spam. For example, gmail shows this one:
+1 to the above.
 
Sending mail to external, non-admin accounts has always been difficult at best with GAE's mail system. Microsoft-owned email services (Outlook.com for example) in particular have high reject rates for GAE email.
Reply all
Reply to author
Forward
0 new messages