add rails task file
add mailer for notifying error