diff --git a/src/transporter.ts b/src/transporter.ts index 61794c2..7c27269 100644 --- a/src/transporter.ts +++ b/src/transporter.ts @@ -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))