Replace multiple arguments to mail module with a single dict