Skip to content

Instantly share code, notes, and snippets.

@KieronWiltshire
Created May 24, 2016 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KieronWiltshire/3f7fd75b31c689a84f6370efe06551c9 to your computer and use it in GitHub Desktop.
Save KieronWiltshire/3f7fd75b31c689a84f6370efe06551c9 to your computer and use it in GitHub Desktop.
'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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment