added fixes for send_email action