• your title says logging. after you send the email, no bother to insert a row into a table you create for the purpose of capturing things like this. That would fit the definition of custom logging.