if (event) then send email