📮
Mailwind
  • 🚀Getting started
    • 👋Introduction
    • 🔗Add a provider
  • 📚Documentation
    • 🎨Tailwind configuration
    • 🔡Dynamic Expressions
    • 📱Responsive
  • API parameters
  • Sendgrid
    • Send an email
      • cURL
      • .NET
      • NodeJS
      • PHP
  • AWS SES
    • Obtain your credentials
    • Send an email
      • cURL
      • .NET
      • NodeJS
      • PHP
  • Resend
    • Send an email
      • cURL
      • .NET
      • NodeJS
      • PHP
Powered by GitBook
On this page
  • LayoutIdentifier : string (optional)
  • Variables : object (optional)
  • Code (optional)

API parameters

Mailwind is simply an interface between your API and Sendgrid. Make an HTTP call as you would your provider except you can add Mailwind settings

Here are the additional parameters for the Mailwind API:

LayoutIdentifier : string (optional)

Identifier of the layout that you have previously created

Example:

{
    layoutIdentifier: "tp-xxxxx"
}

Variables : object (optional)

List of expected variables. This is represented by an object

Example:

{
    variables: {
        user: {
            name: "John Doe",
            email: "john.doe@gmail.com"
            ...
        }
    }
}

Code (optional)

The tailwind HTML code. It will be directly converted and sent

Example:

<div class="bg-red-400">Hello world</div>
PreviousResponsiveNextSend an email

Last updated 1 year ago