Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vitnode-backend-email-smtp

Package Overview
Dependencies
Maintainers
0
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vitnode-backend-email-smtp

SMTP email provider for VitNode projects.

  • 0.0.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
208
decreased by-48.39%
Maintainers
0
Weekly downloads
 
Created
Source

(Vitnode) Backend SMTP Email Provider

This package is used to create a provider for send emails using SMTP into the VitNode app.


VitNode Logo

Installation

pnpm i vitnode-backend-email-smtp --filter backend

or

npn i vitnode-backend-email-smtp --workspace=backend

.env file

Add the following to your .env file:

EMAIL_SMTP_HOST={your_host}
EMAIL_SMTP_PORT={your_port}
EMAIL_SMTP_SECURE={true/false}
EMAIL_SMTP_USER={your_user}
EMAIL_SMTP_FROM={your_from_email}
EMAIL_SMTP_PASSWORD={your_password}

Provide config

Provide emailSMTP to VitNodeCoreModule:

import { Module } from '@nestjs/common';
import { join } from 'path';
import { VitNodeCoreModule } from 'vitnode-backend';
import { emailSMTP } from 'vitnode-backend-email-smtp';

import { DATABASE_ENVS, schemaDatabase } from './database/config';
import { DatabaseModule } from './database/database.module';
import { PluginsModule } from './plugins/plugins.module';

@Module({
  imports: [
    VitNodeCoreModule.register({
      pathToEnvFile: join(process.cwd(), '..', '..', '.env'),
      database: {
        config: DATABASE_ENVS,
        schemaDatabase,
      },
      email: emailSMTP({
        host: process.env.EMAIL_SMTP_HOST,
        port: process.env.EMAIL_SMTP_PORT,
        secure: process.env.EMAIL_SMTP_SECURE === 'true',
        user: process.env.EMAIL_SMTP_USER,
        password: process.env.EMAIL_SMTP_PASSWORD,
        from: process.env.EMAIL_SMTP_FROM,
      }),
    }),
    DatabaseModule,
    PluginsModule,
  ],
})
export class AppModule {}

Keywords

FAQs

Package last updated on 19 Oct 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc