added multiple emails in email functionalities