Implement multiple emails passed as array on mail api