πEmail
The module that handles the email delivery.
Imports
import { EmailService } from 'niro-health';import { EmailModule } from 'niro-health';import type { IEmailService } from 'niro-health';Environment Variables
name
description
SMTP_HOST="smtp.mail.com"
SMTP_PORT="587"
SMTP_SECURE="false"
SMTP_USERNAME="example@mail.com"
SMTP_PASSWORD="YOUR_SMTP_PASSWORD"name
description
AWS_ACCESS_KEY_ID="AKIA56N57H7KHQVADY55"
AWS_SECRET_ACCESS_KEY="zbVU1PUZFeNbrW0sAP2uG3qRUjT8yD5hqnmhrCr1"Method of Use
import { Module } from '@nestjs/common';
import {
EmailService,
ConfigurationService,
ValidatorRegexpService,
StringExService,
AwsCoreService,
AwsConfigurationService,
AwsStsService,
} from 'niro-health';
import { AppController } from './app.controller';
import { AppService } from './app.service';
@Module({
controllers: [AppController],
providers: [
AppService,
{
provide: 'IEmailService',
useClass: EmailService,
},
{
provide: 'IConfigurationService',
useClass: ConfigurationService,
},
{
provide: 'IValidatorRegexpService',
useClass: ValidatorRegexpService,
},
{
provide: 'IStringExService',
useClass: StringExService,
},
{
provide: 'IAwsCoreService',
useClass: AwsCoreService,
},
{
provide: 'IAwsConfigurationService',
useClass: AwsConfigurationService,
},
{
provide: 'IAwsStsService',
useClass: AwsStsService,
},
],
})
export class AppModule {}With dependencies
Interface
Service
Properties
Property
Scope
Description
Methods
Method
Scope
Description
Last updated