Rework sendEmailAction