updated logic to use mandrill and mailchimp