added a simple mailer & record request on before action