Skip to content

zapal-tech/payload-email-sendgrid

Repository files navigation

SendGrid REST Email Adapter for Payload CMS

This adapter allows you to send emails using the SendGrid REST API.

Installation

pnpm add @zapal/payload-email-sendgrid

Usage

  • Sign up for a SendGrid account
  • Create an API key
  • Set API key as SENDGRID_API_KEY environment variable
  • Configure your Payload config
// payload.config.js
import { sendGridAdapter } from '@zapal/payload-email-sendgrid'

export default buildConfig({
  email: sendGridAdapter({
    defaultFromAddress: '[email protected]',
    defaultFromName: 'Zapal',
    apiKey: process.env.SENDGRID_API_KEY || '',
  }),
})

About

Payload CMS SendGrid Email Adapter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published