Using app settings for email configs rather than constants.

Added settings view for email module.