codecombat/server/commons/mail.coffee

16 lines
645 B
CoffeeScript
Raw Normal View History

config = require '../../server_config'
module.exports.MAILCHIMP_LIST_ID = 'e9851239eb'
module.exports.MAILCHIMP_GROUP_ID = '4529'
# these two need to be parallel
module.exports.MAILCHIMP_GROUPS = ['Announcements', 'Adventurers', 'Artisans', 'Archmages', 'Scribes', 'Diplomats', 'Ambassadors']
module.exports.NEWS_GROUPS = ['generalNews', 'adventurerNews', 'artisanNews', 'archmageNews', 'scribeNews', 'diplomatNews', 'ambassadorNews']
nodemailer = require 'nodemailer'
2014-06-30 22:16:26 -04:00
module.exports.transport = nodemailer.createTransport 'SMTP',
service: config.mail.service
user: config.mail.username
pass: config.mail.password
2014-06-30 22:16:26 -04:00
authMethod: 'LOGIN'