def send_community_request_email(increq):
    """Signal for sending emails after community inclusion request."""
    from flask_mail import Message
    from invenio_mail.tasks import send_email

    msg_body = format_request_email_body(increq)
    msg_title = format_request_email_title(increq)

    sender = current_app.config['COMMUNITIES_REQUEST_EMAIL_SENDER']

    msg = Message(
        msg_title,
        sender=sender,
        recipients=[increq.community.owner.email, ],
        body=msg_body
    )

    send_email.delay(msg.__dict__)
Signal for sending emails after community inclusion request.