adding arguments to mail function
making arguments for mail function default to NULL
Merge pull request #2 from daftlabs/feature/mail-arguments

adding arguments to mail function