 postageapp = require('postageapp')(env.secrets.postageapp)
 _ = require('underscore')
 async = require('async')
+
+template_name = "contestant_member_nag"
 
 Team = mongoose.model 'Team'
 Person = mongoose.model 'Person'

  currentTeam.people (err, people) ->
    return callback(err) if err
    emailable = (person for person in people when /@/.test(person.email))
    util.log "Sending 'final_thank_you' to '#{team.name}'".yellow
    async.forEach emailable, msgPerson, callback

msgPerson = (person, callback) ->


  postageapp.sendMessage
    recipients: address
    template: template_name
    variables:
      team: " #{currentTeam.name}"
      team_id: " #{currentTeam.id}"
      slug: " #{currentTeam.slug}"
    , (args...) ->
      # console.log "completed sending"
