(self)
This sends the confirmation email to the invited_by user that their
        invitation was accepted.
        :return:
This sends the confirmation email to the invited_by user that their
        invitation was accepted.
        :return:
This sends the confirmation email to the invited_by user that their invitation was accepted . : return :
def _send_confirmation_email(self):
        """
        This sends the confirmation email to the invited_by user that their
        invitation was accepted.
        :return:
        """
        invited_user = self.email
        subject = _('{} accepted your invitation to CommCare HQ').format(invited_user)
        recipient = WebUser.get_by_user_id(self.invited_by).get_email()
        context = {
            'invited_user': invited_user,
        }
        html_content = render_to_string('domain/email/invite_confirmation.html',
                                        context)
        text_content = render_to_string('domain/email/invite_confirmation.txt',
                                        context)
        send_html_email_async.delay(
            subject,
            recipient,
            html_content,
            text_content=text_content
        )
def _send_confirmation_email ( self ) : invited_user = self . email subject = _ ( '{} accepted your invitation to CommCare HQ' ) . format ( invited_user ) recipient = WebUser . get_by_user_id ( self . invited_by ) . get_email ( ) context = { 'invited_user' : invited_user , } html_content = render_to_string ( 'domain/email/invite_confirmation.html' , context ) text_content = render_to_string ( 'domain/email/invite_confirmation.txt' , context ) send_html_email_async . delay ( subject , recipient , html_content , text_content = text_content )