Skip to content

(WP) SendGrid explanation

Piotr Bukalski edited this page Mar 31, 2014 · 1 revision

What is SendGrid?

SendGrid's cloud-based email infrastructure.
Simply saying it gives us API to send emails with out strait connecting to SMTP server or using other (on WP poor and limited) API's.

Why we use it anyway?

We use SendGrid to crash reporting. When unhanded exception occurs LittleWatson class grabs all log files, device and user informations and send them to us by email.
Why not use EmailComposeTask? you will ask for sure. I can tell you why: BECAUSE IT'S THE MOST USELESS API EVER MADE. You can't add any attachments to your mail and your message must fit into 64 KB... Yea you read it right 64KB. Why then not connect to SMTP server on our own? Truth is we can try to do that but it's not trivial. SMTP isn't officially supported for WP apps. We can do everything manually but if we really want to... Answer is on, SendGrid is much easier.

How we use it?

First very important info is that we use it for free at lest until we don't send more than 25 k mails per month.
To achieve such sale we created SendGrid appservice on Windows Azure. Thanks to this partner ship we've got free 25 k mails per month.