@rakun-kit/smtp
v1.0.0
Published
SMTP mail adapter for Rakun.
Readme
@rakun-kit/smtp
Nodemailer SMTP adapter for Rakun mail.
bun add @rakun-kit/smtp nodemailerConfigure it during bootstrap with an SMTP URL:
import { rakunBootstrap } from '@rakun-kit/core'
import { createSmtpMailServiceConfig } from '@rakun-kit/smtp'
rakunBootstrap({
// ...
mail: createSmtpMailServiceConfig({
transport: process.env.SMTP_URL!,
defaultFrom: {
name: 'Rakun',
address: '[email protected]',
},
defaultReplyTo: '[email protected]',
}),
})transport also accepts Nodemailer's SMTPTransport.Options, including
host, port, TLS, authentication and pooling settings.
The adapter supports HTML and text bodies, To/CC/BCC/Reply-To, custom headers, binary attachments and CID inline attachments.
