@nextnm/nestjs-ses
Advanced tools
Weekly downloads
Readme
This is a simple wrapper of node-ses. It only comtemplates the send email functionality, but later it will be added more. Just ping me or open pull request and contribute :)
npm install @nextnm/nestjs-ses
import { SesModule } from '@nextnm/nestjs-ses';
@Module({
imports: [
SesModule.forRoot({
secret: '<YOUR SECRET>',
apiKey: '<YOUR API_KEY>',
region: 'eu-west-1',
}),
],
providers: [],
exports: [],
})
export class YourModule {}
interface EmailOptions {
from: string;
to: string;
subject: string;
html?: string;
replyTo?: string;
cc: string;
bcc: string[];
altText?: string;
}
import { SesService } from '@nextnm/nestjs-ses';
import { SesEmailOptions } from '@nextnm/nestjs-ses'
@Injectable()
export class YourService {
constructor(private sesService: SesService) {
const options: SesEmailOptions = {
from:'',
to:'',
subject:'',
html:'',
replyTo:'',
cc:'',
bcc:'',
altText:'',
};
await this.sesService.sendEmail(options);
}
Contributions welcome! See Contributing.
This project is not endorsed by or affiliated with AWS.
Nuno Carvalhão Site
Licensed under the MIT License - see the LICENSE file for details.
FAQs
NestJS provider for sending emails with ses
The npm package @nextnm/nestjs-ses receives a total of 670 weekly downloads. As such, @nextnm/nestjs-ses popularity was classified as not popular.
We found that @nextnm/nestjs-ses demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.