Enviar registro por correo electrónico: Sets, functions, and logic :