update mail functionality. Update syntax for mail gem (we might need more options for mail setting?)