1
    using-email-templates

    using-email-templates

    Expert integration for Mailtrap email templates, Handlebars data mapping, and responsive HTML generation.

    Updated Jun 2026
    0 installs

    Free

    Included in download

    • Downloadable skill package
    • Works with Compatible with Claude Code, Cursor
    • 2 permissions declared
    • Instant install

    Sample input

    Create a Node.js script to send a 'welcome' email to a new user using template-uuid-123 and include their name and subscription plan.

    Sample output

    const { MailtrapClient } = require("mailtrap");
    
    const client = new MailtrapClient({ token: process.env.MAILTRAP_TOKEN });
    
    client.send({
      from: { name: "Our App", email: "hello@example.com" },
      to: [{ email: "user@demo.com" }],
      template_uuid: "template-uuid-123",
      template_variables: {
        user_name: "Alex",
        plan: "Premium"
      }
    });
    

    About This Skill

    Guides agents through creating templates in the Mailtrap UI, referencing them by UUID from application code, and filling them with Handlebars variables at send time. Covers the template_uuid + template_variables API payload shape, supported Handlebars syntax (conditionals, loops, nested paths, escaped vs raw HTML), previewing with the sandbox, and managing templates via the Templates API. Works with both transactional and bulk streams.

    Use Cases

    • Generate mobile-responsive HTML for new Mailtrap email templates
    • Map complex application data structures to Handlebars variables
    • Implement batch email sends using the Mailtrap Bulk API stream
    • Debug failing template sends caused by incorrect JSON payload shapes

    Reviews

    No reviews yet - be the first to share your experience.

    Only users who have downloaded or purchased this skill can leave a review.

    Security Scanned

    Passed automated security review

    Permissions

    Terminal / Shell
    Network Access

    Allowed Hosts

    docs.mailtrap.io
    send.api.mailtrap.io
    bulk.api.mailtrap.io
    github.com

    Compatible with Claude Code, Cursor, Windsurf, and Aider.

    Frequently Asked Questions

    Free