separated mailOptions into own module