nodemailer final
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import { IsEmail, IsInt, IsString } from 'class-validator';
|
||||
import { IsEmail, IsString } from 'class-validator';
|
||||
|
||||
export class NodemailerMessageDto {
|
||||
@IsEmail()
|
||||
email: string;
|
||||
|
||||
@IsString()
|
||||
subject: string;
|
||||
html: string;
|
||||
|
||||
@IsString()
|
||||
html: string;
|
||||
subject: string;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import * as nodemailer from 'nodemailer';
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { ConfigService } from '@nestjs/config';
|
||||
import * as nodemailer from 'nodemailer';
|
||||
import { NodemailerMessageDto } from './dto/nodemailer-message.dto';
|
||||
|
||||
@Injectable()
|
||||
|
||||
Reference in New Issue
Block a user