code: def _send_invitation(self, enrollment, event):
          
  
          self.log('Sending enrollment status mail to user')
  
          self._send_mail(self.config.invitation_subject, self.config.invitation_mail, enrollment, event)
docs: Send an invitation mail to an open enrolment