Sending multiple emails function added