SendGrid

📬

Email delivery service integration.

Heads up. SendGrid was bought by Twilio some time ago. We don't plan to update this guide.

# About SendGrid

SendGrid offers an e-mail delivery service that assists businesses with transactional e-mail management.

# Booking

Choose your desired plan to initiate the sign up. You'll first just need to choose a user name, tell them your email address and choose a password. Later on they want to know a little more about you. "Provisioning" your account includes human! checks.

# Set up

In order to get your mails through the SPAM filter of your users, you'll need to authorize the ownership of the domain you are using — think DNS modifications. fortrabbit is not involved here. You do this with your domain or DNS provider of choice. This is done with DKIM and SPF.

# Using SendGrid with fortrabbit

Once you have the setup done, you can finally start using SendGrid from your fortrabbit App. This is straight forward:

The SendGrid PHP library here on GitHub can be required like so:

{
  "require": {
    "sendgrid/sendgrid": "~4.0"
  }
}
composer.json
json

To send e-mails via the API, you'll need to specify your SendGrid API key. There is also an PHP SendGrid example on GitHub which makes use of both, the API and the SMTP gateway.

Found a tpyo?Edit