refactor(chore): remove commented code

This commit is contained in:
Julien Oculi 2024-03-29 16:53:20 +01:00
parent f42cf708c0
commit 82533c7de9

View file

@ -1,16 +1,11 @@
// @deno-types="npm:@types/nodemailer"
import nodemailer from 'nodemailer'
// import smime from 'nodemailer-smime'
const dkimPrivateKey = await Deno.readTextFile(
'/home/julien/dkim_sendmail_keys/dkim_sendmail_cohabit_fr.pem',
)
// const smimeOptions = {
// cert: '',
// chain: [''],
// key: '',
// }
).catch((cause) => {
throw new Error('unable to load DKIM private key', { cause })
})
export const transporter = nodemailer.createTransport({
sendmail: true,
@ -22,4 +17,3 @@ export const transporter = nodemailer.createTransport({
privateKey: dkimPrivateKey,
},
})
// .use('stream', smime(smimeOptions))