@open-source-initiative/notify-email
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "@open-source-initiative/notify-email", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Nodemailer wrapper for simple \"send email\" cases", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -10,17 +10,2 @@ import nodemailer from 'nodemailer' | ||
let officialConfigurations = { | ||
host: process.env.EMAIL_SERVER, | ||
// port: 25, | ||
secure: true, // upgrade later with STARTTLS | ||
auth: { | ||
user: process.env.SYSTEM_EMAIL_USERNAME, | ||
pass: process.env.SYSTEM_EMAIL_PASS | ||
}, | ||
tls: { | ||
// do not fail on invalid certs | ||
rejectUnauthorized: false | ||
} | ||
} | ||
export const buildBasicConfigs = ({ host, port, username, password }: { host: string, port?: number, username: string, password: string }, configs: nodemailer.TransportOptions) => { | ||
@@ -27,0 +12,0 @@ return { |
import nodemailer from 'nodemailer'; | ||
import { EmailConfigs } from '../build'; | ||
export * as EmailConfigs from './configs'; | ||
@@ -5,0 +3,0 @@ |
22721
246