Added flag to send email