Using SendGrid Mail API plug-in to send emails

What are we going to build?

We were getting a lot of questions how do you send email from your mobile app? We would always tell user to use SendGrid, a wonderful cloud service that provides REST API for sending out emails. Today we released SendGrid Mail API plug-in in Tiggzi. All it takes now is a few clicks and you are ready to send emails from your mobile app.

Before you start

Tutorial level: intermediate

Before being able to send out emails with SendGrid you need to sign up for an account. SendGrid offers a free plan.

Creating New Project

  1. Enter SendGrid App for app name and click Create.
  2. Once the mobile editor loads, you should see something like this:
  3. On the left-hand side click Pages > startScreen – editor with an empty startScreen will open:

Importing Send mail API plug-in

  1. To import the plug-in click Create New->From Plug-in:
  2. In Communication category you should see SendGrid Mail API:
  3. Click Import selected plug-ins button.
    You will be asked whether you want to enter api_user and api_key values. Before being able to send out emails with SendGrid you need to sign up for an account (SendGrid offers a free plan). You will then get a api_user and api_key. You may skip entering these values right now. You can always set them in Service/SendGrid_Settings.
  4. Once the plug-in is imported, you will have page called Sendmail that looks like this:
  5. You can also open the REST service (SendGrid_MailSend). The URL is defined here:
  6. Request parameters:

    • {api_user} and {api_key} are set in SendGrid_Settings.
  7. And finally the service mapping (UI to service):

This REST service has additional option parameters which are described here. You may modify the service as you need. SendGrid provides other API’s that you can find here.

Have fun building apps in Tiggzi, now with SendGrid email API.