more logging and delete the message only when the email is sent