def METHOD_NAME(client, edit, invitation):
    domain = client.get_group(edit.domain)
    venue_id = domain.id
    short_name = domain.get_content_value('subtitle')
    submission_name = domain.get_content_value('submission_name')
    invitation_name = invitation.id.split('/-/')[-1].replace('_', ' ').lower()
    meta_invitation = client.get_invitation(invitation.invitations[0])
    email_pcs = meta_invitation.content['email_pcs']['value']
    email_sacs = meta_invitation.content['email_sacs']['value']
    notify_readers = meta_invitation.content['notify_readers']['value']
    email_template = meta_invitation.content['email_template']['value']
    submission = client.get_note(edit.note.forum)
    note = client.get_note(edit.note.id)
    paper_group_id=f'{venue_id}/{submission_name}{submission.number}'
    if email_template:
        email_template = email_template.replace('{submission_number}', str(submission.number))
        email_template = email_template.replace('{submission_id}', submission.id)
        email_template = email_template.replace('{note_id}', note.id)
    # don't send email in case of update
    if note.tcdate != note.tmdate or not notify_readers:
        return
    signature = note.signatures[0].split('/')[-1]
    pretty_signature = openreview.tools.pretty_id(signature)
    pretty_signature = 'An author' if pretty_signature == 'Authors' else pretty_signature
    ignore_groups = [edit.tauthor]
    content = f'''