setupMail function expects an object with password