refactor(chore): remove commented code
This commit is contained in:
parent
f42cf708c0
commit
82533c7de9
|
@ -1,16 +1,11 @@
|
||||||
// @deno-types="npm:@types/nodemailer"
|
// @deno-types="npm:@types/nodemailer"
|
||||||
import nodemailer from 'nodemailer'
|
import nodemailer from 'nodemailer'
|
||||||
// import smime from 'nodemailer-smime'
|
|
||||||
|
|
||||||
const dkimPrivateKey = await Deno.readTextFile(
|
const dkimPrivateKey = await Deno.readTextFile(
|
||||||
'/home/julien/dkim_sendmail_keys/dkim_sendmail_cohabit_fr.pem',
|
'/home/julien/dkim_sendmail_keys/dkim_sendmail_cohabit_fr.pem',
|
||||||
)
|
).catch((cause) => {
|
||||||
|
throw new Error('unable to load DKIM private key', { cause })
|
||||||
// const smimeOptions = {
|
})
|
||||||
// cert: '',
|
|
||||||
// chain: [''],
|
|
||||||
// key: '',
|
|
||||||
// }
|
|
||||||
|
|
||||||
export const transporter = nodemailer.createTransport({
|
export const transporter = nodemailer.createTransport({
|
||||||
sendmail: true,
|
sendmail: true,
|
||||||
|
@ -22,4 +17,3 @@ export const transporter = nodemailer.createTransport({
|
||||||
privateKey: dkimPrivateKey,
|
privateKey: dkimPrivateKey,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
// .use('stream', smime(smimeOptions))
|
|
||||||
|
|
Loading…
Reference in a new issue