Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- /**
- * E-mail Server configuration
- * --------------------------------------------------
- */
- let options = {};
- /**
- * E-mail server's host
- */
- options['host'] = process.env.EMAIL_HOST || 'smtp.office365.com';
- /**
- * E-mail server's port
- */
- options['port'] = process.env.EMAIL_PORT || '587';
- /**
- * E-mail server's login
- */
- options['auth'] = {
- user: process.env.EMAIL_USERNAME || 'test@dracade.com',
- pass: process.env.EMAIL_PASSWORD || null
- };
- /**
- * Secure e-mail delivery using SSL
- */
- options['secureConnection'] = process.env.EMAIL_SECURE || false;
- /**
- * Connection pooling
- */
- options['pool'] = true;
- /**
- * Disable STARTTLS support if true
- */
- options['ignoreTLS'] = false;
- /**
- * TLS cipher for secure transport
- */
- options['tls'] = {
- ciphers: 'SSLv3',
- rejectUnauthorized: false
- };
- /**
- * Application global 'from'
- */
- options['from'] = {
- name: 'Dracade',
- address: 'no.reply@dracade.com'
- };
- /**
- * Debugger options
- */
- options['logger'] = true;
- options['debug'] = true;
- module.exports = options;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement