adding arguments to mail function