Enviar registro por correo electrónico: La lógica del titiritero