         path: path
         where: 'server'
         action: ->
+          to = @params.query.to or settings.testEmail
+
           if to?
             data = template.route.data and template.route.data.apply(this, arguments)
 


          @response.end(html, 'utf8')

    addSend: (template, to) ->
      check template.name, String
      check template.route,
        path: String


        if template.route and process.env.NODE_ENV is 'development'
          Routes.addPreview template
          Routes.addSend template

  # Export

