11 lines
294 B
TypeScript
11 lines
294 B
TypeScript
import { SMTP_TOKEN, SMTP_USERNAME } from '$env/static/private'
|
|
import nodemailer from "nodemailer"
|
|
export const transporter = nodemailer.createTransport({
|
|
service: "Proton",
|
|
auth: {
|
|
user: SMTP_USERNAME,
|
|
pass: SMTP_TOKEN
|
|
},
|
|
authMethod: "PLAIN"
|
|
} as nodemailer.TransportOptions)
|