 misc         = require('smc-util/misc')
 {defaults, required} = misc
 
-{SENDGRID_TEMPLATE_ID, SENDGRID_ASM_NEWSLETTER, COMPANY_NAME, COMPANY_EMAIL, DOMAIN_NAME, SITE_NAME} = require('smc-util/theme')
+{SENDGRID_TEMPLATE_ID, SENDGRID_ASM_NEWSLETTER, COMPANY_NAME, COMPANY_EMAIL, DOMAIN_NAME, SITE_NAME, DNS, HELP_EMAIL} = require('smc-util/theme')
 
 email_server = undefined
 

    )


exports.welcome_email = (opts) ->
    opts = defaults opts,
        to           : required

    token_query = encodeURI("email=#{encodeURIComponent(opts.to)}&token=#{opts.token}")
    endpoint    = os_path.join('/', base_url, 'auth/verify')
    token_url   = "#{DOMAIN_NAME}#{endpoint}?#{token_query}"

    body = welcome_email_html(token_url)

    send_email
        subject      : "Welcome to #{SITE_NAME} - #{DNS}"
        body         : body
        fromname     : COMPANY_NAME
        from         : COMPANY_EMAIL
