New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@wrserver/mail

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wrserver/mail

wrserver - mail module

latest
Source
npmnpm
Version
1.2.3
Version published
Maintainers
1
Created
Source

WRServer/Mail

License Email Donate Donate

@wrserver mail module to send email to users.

Installing

Install this library is easy by cloning the repo. You can install trhought npm too:

Local installation

npm install @wrserver/mail

Global installation

npm install -g @wrserver/mail

We recomend to use the entire base package (core, crypt, data, auth, mail)

Mail Service

This module add the MailService to the WRServer Set of elements. It provides a configuration to send email with nodemail library.

Include MailService

At Module defition

import { MailService, MailModule } from '@wrserver/mail';

export class MyModule extends Module {
    //... controller, models, etc. ...
    public services: ServiceType[] = [ MailService, ... Other Services ... ];
    public dependencies: ModuleType[] = [ MailModule, ... Other Modules ... ];
    //... rest of code ...
}

MailService Configuration

At Server definition (settings)

import { WRServer }from '@wrserver/core';
import { MailModule } from '@wrserver/data';

//REMEMBER: don't use this static methods inside module definitions
DataModule.withService(<service: email@gmail.com>).withUser(<username>).withPass(<password>)

//Server definition
let server: WRServer = new WRServer(...)

Contacts

If you like the project feel free to contact me on my Email.

Something gone wrong? Feel free to rise an issue!

Did you like this project and it was usefull? Help me improve my work:

Donate Donate

FAQs

Package last updated on 22 Jun 2020

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