Created
May 24, 2016 12:18
-
-
Save KieronWiltshire/3f7fd75b31c689a84f6370efe06551c9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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 || '[email protected]', | |
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: '[email protected]' | |
}; | |
/** | |
* 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