attempting to build a rake task for email automation