npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

strapi-provider-email-zeptomail-v5

v1.0.2

Published

ZeptoMail provider for Strapi email plugin (compatible with v4 and v5)

Downloads

17

Readme

Strapi Email Provider - ZeptoMail

A ZeptoMail provider for the Strapi email plugin, compatible with both Strapi v4 and v5.

Installation

# Using npm
npm install strapi-provider-email-zeptomail-v5

# Using yarn
yarn add strapi-provider-email-zeptomail-v5

Configuration

Create or modify your config/plugins.js file:

module.exports = ({ env }) => ({
  email: {
    config: {
      provider: 'strapi-provider-email-zeptomail-v5',
      providerOptions: {
        url: env('ZEPTOMAIL_URL'),
        apiKey: env('ZEPTOMAIL_API_KEY'),
      },
      settings: {
        defaultFrom: env('EMAIL_DEFAULT_FROM'),
        sender_name: env('EMAIL_SENDER_NAME'),
        replyTo: env('EMAIL_REPLY_TO'),
      },
    },
  },
});

Environment Variables

Add these to your .env file:

ZEPTOMAIL_URL=https://api.zeptomail.com/v1.1/email
ZEPTOMAIL_API_KEY=your_zeptomail_api_key
[email protected]
EMAIL_SENDER_NAME=Your App Name
[email protected]

Usage

Once configured, you can send emails using Strapi's email service:

await strapi.plugin('email').service('email').send({
  to: '[email protected]',
  subject: 'Welcome!',
  text: 'Welcome to our platform!',
  html: '<h1>Welcome!</h1><p>Welcome to our platform!</p>',
  track_opens: true,
  track_clicks: true,
  client_reference: 'welcome-email-001'
});

Features

  • ✅ Compatible with Strapi v4 and v5
  • ✅ TypeScript support
  • ✅ Full attachment support
  • ✅ Inline images support
  • ✅ Custom MIME headers
  • ✅ CC and BCC support
  • ✅ Reply-to configuration
  • ✅ Base64 attachment encoding
  • ✅ Email tracking (opens and clicks)
  • ✅ Client reference support
  • ✅ Error handling

API Reference

Send Options

interface SendOptions {
  from?: string | EmailAddress;
  to: string | EmailAddress;
  cc?: string | EmailAddress | (string | EmailAddress)[];
  bcc?: string | EmailAddress | (string | EmailAddress)[];
  subject: string;
  text?: string;
  html?: string;
  replyTo?: string | EmailAddress | (string | EmailAddress)[];
  attachments?: EmailAttachment[];
  mimeHeaders?: Record<string, string>;
  inlineImages?: InlineImage[];
  track_clicks?: boolean;
  track_opens?: boolean;
  client_reference?: string;
}

Email Address

interface EmailAddress {
  address: string;
  name?: string;
}

Email Attachment

interface EmailAttachment {
  content: string | Buffer;
  filename: string;
  contentType?: string;
}

Inline Image

interface InlineImage {
  content: Buffer;
  filename: string;
  contentType?: string;
}

Advanced Usage

Sending Email with Attachments

await strapi.plugin('email').service('email').send({
  to: '[email protected]',
  subject: 'Document Attached',
  html: '<p>Please find the attached document.</p>',
  attachments: [
    {
      filename: 'document.pdf',
      content: Buffer.from('...'),
      contentType: 'application/pdf'
    }
  ]
});

Sending Email with Inline Images

await strapi.plugin('email').service('email').send({
  to: '[email protected]',
  subject: 'Email with Image',
  html: '<p>Check out this image: <img src="cid:logo.png" /></p>',
  inlineImages: [
    {
      filename: 'logo.png',
      content: Buffer.from('...'),
      contentType: 'image/png'
    }
  ]
});

Using Custom MIME Headers

await strapi.plugin('email').service('email').send({
  to: '[email protected]',
  subject: 'Email with Custom Headers',
  html: '<p>Email content</p>',
  mimeHeaders: {
    'X-Custom-Header': 'custom-value',
    'X-Priority': '1'
  }
});

Development

# Install dependencies
npm install

# Build the project
npm run build

# Run in development mode
npm run develop

# Run tests
npm test

# Lint code
npm run lint

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT License - see the LICENSE file for details.

Support

For support, please open an issue on the GitHub repository.