Human. Engineer. Systems Addict. Project Leader. Dog owner. INTP. Excited to be alive and think!

Integrating Email Service today #struggles @1do

Choosing Sengrid

I just need sending a simple email to notify users on signup and send an invite code to those who requested to signup to alpha. All alpha level users will get free for life account on 1do.today. Just sign up and drop me a reply you’d like to get an invite.

Now, I’d need to send some transactional emails. Nothing fancy, just a simple text. I chose Sendgrid because of it’s [still] quasi-free entry level option, and seemingly easy of use.

Well, it was almost easy. Besides the need to update my dev environment with all dependencies for the Sendgrid API, and struggling to understand them all to get them right, it’s still not working …

The last step: script now works, but Sendgrid rejects the request with a cryptic response… And I can’t figure it out if it’s rejecting the API key or the request itself. Worked it out finally after putting in some time for 2 days. I mention this is all done using the quick setup from Sendgrid integration workflow itself:

Kept getting 400 error code. Well, because you can only add text content once … Worked immediately after removing the second ‘addContent’! So why then Sengrid includes 2 ?

Anyway, I’ll take from here.

This blog post is actually just a Google Doc! Create your own blog with Google Docs, in less than a minute.