How can I send an email with a certificate automatically after a user completed an learning activity