Vitemail is a library for sending emails easily
npm i vitemail
- Module Configuration
In your module file where you want to use it, provide your auth details to the authProvider method.
import { ViteMailModule } from "vitemail";
@Module({
imports: [
ViteMailModule.authProvider({
email: "example@gmail.com",
password: "*******",
}),
],
})
export class AppModule {}
- Service Configuration
In your service file where you want to use it.
import { ViteMailService } from "vitemail";
- Types example
import { VitemailOptions } from "vitemail";
const options: VitemailOptions = {
}