   User.find { weeklyReport: true }, callback
 
 plainTemplate = (report) ->
+  text = ''
   for data in report.data
     do (data) ->
-      " \r\n \r\n <---------- Start Channel  #{data.channel.name} ---------------------------> \r\n \r\n
+      text += " \r\n \r\n <---------- Start Channel  #{data.channel.name} ---------------------------> \r\n \r\n
                 Channel Name: #{data.channel.name} \r\n
                 Channel Load: #{ data.data[0].load } transactions  \r\n
                 Ave response time: #{ data.data[0].avgResp } \r\n

              \r\n
              \r\n
            "
htmlTemplate = (report) ->
  text = "
    <html>

  agenda.every "1 days", 'send daily channel metrics'

exports.setupAgenda = setupAgenda
exports.sendReports = sendReports
exports.fetchDailySubscribers = fetchDailySubscribers
exports.fetchWeeklySubscribers = fetchWeeklySubscribers
exports.fetchChannelReport = fetchChannelReport
exports.sendUserEmail = sendUserEmail