 
 
 sendUserEmail = (report) ->
-  contact.contactUser 'email', report.email, 'Report for ' + report.email , plainTemplate(report), htmlTemplate(report) , afterEmail
+  contact.contactUser 'email', 'duma@eworks.co.zw', report.type + ' report for ' + report.email , plainTemplate(report), htmlTemplate(report) , afterEmail
 
 
 #TODO refactor function to include status metrics as well as to allow for weekly metrics
 fetchChannelReport = (channel,user,callback) ->
+  item = {}
   logger.info 'fetching channel report for #' + channel.name + ' ' + user.email + channel.id
   metrics.fetchChannelMetrics 'day',channel.id,user,{}
   .then (data) ->
-    item = {}
     item.channel = channel
     item.data = data
-    callback item
+    #Then fetch status metrics
+    metrics.fetchChannelMetrics 'status',channel.id,user,{}
+    .then (statusData) ->
+      item.statusData = statusData
+      callback item
 
 fetchDailySubscribers = (callback) ->
   User.find { dailyReport: true }, callback


if process.env.NODE_ENV == "test"
  exports.sendReports = sendReports
  exports.fetchUsers = fetchUsers
  exports.fetchChannelReport = fetchChannelReport

    (Q.all promises).then ->
#      logger.info JSON.stringify reportMap
      for report in reportMap
        if fetchUsers == fetchDailySubscribers
          report.type = 'Daily'
        else
          report.type = 'Weekly'

        sendUserEmail report

      logger.info "sending user email "
      done()

