def METHOD_NAME(self):
    """Send an email with the invitation to join the object."""
    email = self.invitation.to_email
    if not email:
        email = self.invitation.to_user.email
    from_user = self.invitation.from_user
    from_name = from_user.get_full_name() or from_user.username
    object_description = self._get_email_object_description()
    expiration_date = self.invitation.expiration_date
    log.info(
        "Emailing invitation",
        email=email,
        invitation_pk=self.invitation.pk,
        object_type=self.invitation.object_type,
        object_name=self.invitation.object_name,
        object_pk=self.invitation.object.pk,
    )
    send_email(
        recipient=email,
        subject=f"{from_name} has invite you to join the {object_description}",
        template="invitations/email/invitation.txt",
        template_html="invitations/email/invitation.html",
        context={
            "from_name": from_name,
            "object_description": object_description,
            "invite_url": self.invitation.get_absolute_url(),
            "valid_until": timesince.timeuntil(expiration_date),
            "expiration_date": formats.date_format(expiration_date),
        },
    )