Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@n4it/utility-sendgrid

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@n4it/utility-sendgrid

Package to manage emails on an event-driven way using NestJS and SendGrid.

latest
Source
npmnpm
Version
1.2.3
Version published
Weekly downloads
2
-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

@n4it/utility-sendgrid

A NestJS module for sending emails with SendGrid. The SendGridEmailModule will listen to events and send emails via sendgrid accordingly.

Installation

To install the module, use npm:

npm install @n4it/utility-sendgrid

Usage

Importing and Configuring the Module

To use the SendGridEmailModule, import it into your NestJS module and configure it using the register method. This method exposes an event listener, so you can sending emails.

import { SendGridEmailModule } from "@n4it/utility-sendgrid";
import { Module } from "@nestjs/common";

@Module({
  imports: [
    SendGridEmailModule.register({
      logErrros: true,
      apiKey: "SG-....",
      fromEmail: "hello@example.com",
      exponentialBackoff: {
        maxRetries: 3,
        baseDelayMs: 1000
      },
    }),
  ],
})
export class AppModule {}

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request or open an issue on GitHub.

Support

If you have any questions or need support, you can contact us at info@n4it.nl.

Keywords

nestjs

FAQs

Package last updated on 19 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts