implemented an Options class for the mail config

Signed-off-by: alexlehm <alexlehm@gmail.com>