Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@spreadmonitor/nest-mailer-module
Advanced tools
Re-usable NestJS module for sending emails via Mailgun.
Re-usable NestJS module for sending emails via Mailgun.
$ npm install @spreadmonitor/nest-mailgun-module
import { Module } from '@nestjs/common';
import { MailgunModule } from '@spreadmonitor/nest-mailgun-module';
import * as TEMPLATES from './email-templates';
@Module({
imports: [
MailgunModule.forRoot({
templates: TEMPLATES,
sender: 'Fancy Co. <no-reply@fancy.com>',
mailgunApiKey: process.env['MAILGUN_API_KEY'],
mailgunDomain: process.env['MAILGUN_DOMAIN'],
}),
],
exports: [MailgunModule],
})
export class CoreModule {}
import { SignupService } from '@app/auth/services';
import { MailService } from '@spreadmonitor/nest-mailgun-module';
import { WelcomeTemplate } from '@app/auth/email-templates';
@Controller('auth')
export class SignupController {
constructor(private readonly signupService: SignupService, private readonly mailService: MailService) {}
@Post('signup')
async createAccount(@Body() payload: SignupPayload): string {
await this.signupService.createAccount();
await this.mailService.send(payload.email, WelcomeTemplate, {
name: payload.name,
});
return { message: 'Yay! Account created!' };
}
}
For detailed usage please read the documentation.
This project is licensed under MIT.
FAQs
Re-usable NestJS module for sending emails via Mailgun.
The npm package @spreadmonitor/nest-mailer-module receives a total of 5 weekly downloads. As such, @spreadmonitor/nest-mailer-module popularity was classified as not popular.
We found that @spreadmonitor/nest-mailer-module demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.