Is there anything that will email members (Membership) based on their subscription or access level?

I need to be able to send unique emails to a member based on either their subscription or access level. Is there a solutions? I'd be happy exporting the data to Mailchimp to do it but I don't know how to get at the database.