Advertisement
Guest User

Untitled

a guest
May 24th, 2016
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. 'use strict';
  2.  
  3. /**
  4. * E-mail Server configuration
  5. * --------------------------------------------------
  6. */
  7. let options = {};
  8.  
  9. /**
  10. * E-mail server's host
  11. */
  12. options['host'] = process.env.EMAIL_HOST || 'smtp.office365.com';
  13.  
  14. /**
  15. * E-mail server's port
  16. */
  17. options['port'] = process.env.EMAIL_PORT || '587';
  18.  
  19. /**
  20. * E-mail server's login
  21. */
  22. options['auth'] = {
  23. user: process.env.EMAIL_USERNAME || 'test@dracade.com',
  24. pass: process.env.EMAIL_PASSWORD || null
  25. };
  26.  
  27. /**
  28. * Secure e-mail delivery using SSL
  29. */
  30. options['secureConnection'] = process.env.EMAIL_SECURE || false;
  31.  
  32. /**
  33. * Connection pooling
  34. */
  35. options['pool'] = true;
  36.  
  37. /**
  38. * Disable STARTTLS support if true
  39. */
  40. options['ignoreTLS'] = false;
  41.  
  42. /**
  43. * TLS cipher for secure transport
  44. */
  45. options['tls'] = {
  46. ciphers: 'SSLv3',
  47. rejectUnauthorized: false
  48. };
  49.  
  50. /**
  51. * Application global 'from'
  52. */
  53. options['from'] = {
  54. name: 'Dracade',
  55. address: 'no.reply@dracade.com'
  56. };
  57.  
  58. /**
  59. * Debugger options
  60. */
  61. options['logger'] = true;
  62. options['debug'] = true;
  63.  
  64. module.exports = options;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement