added batch email support