gem 'mail' require 'crystal/template' [ 'mail', ].each{|f| require "crystal/remote/#{f}"} crystal.register :mail, :depends_on => :environment do Crystal::Mail.new #TODO2 add mail config here end Crystal.run :mail, :after => :render