Cookies ahead

Our support chat tool "Intercom" would like to collect some more data on you. See the related link for more details.

Docs

SendGrid

📬

Email delivery service integration.

SendGrid is a transactional email delivery service that helps reliably send emails from your fortrabbit app through SMTP or API integration.

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

About SendGrid

SendGrid is a transactional email delivery service that helps businesses reliably send and manage transactional emails through API and SMTP integration.

Booking

To get started with SendGrid, you select a plan and create an account with a username, email, and password. Account provisioning includes human verification steps before your account is fully activated.

Set up

To prevent your emails from reaching spam folders, you must verify domain ownership by configuring DNS records (DKIM and SPF) through your domain or DNS provider—fortrabbit is not involved in this step.

Using SendGrid with fortrabbit

After domain verification is complete, integrate SendGrid into your fortrabbit app using the SendGrid PHP library via Composer. The SendGrid PHP library here on GitHub can be required like so:

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

To send emails via the API, you'll need to specify your SendGrid API key. The SendGrid PHP example on GitHub demonstrates both API and SMTP gateway integration approaches.

Written by a human. Review, grammar checks and typo fixes by AI.

AI use & editorial processEdit on GitHub ↗