[DO NOT MERGE]: fixes #7734 - Add user mail preferences

This PR is based on PR #1813 and should be tested After #1813 is merged.
Adds the option for a user to set when he wishes to receive mails (daily, weekly, monthly).