                         subject  = mesg.subject
 
                     try
-                        email_body = create_email_body(subject, mesg.email, locals.email_address, mesg.title, mesg.link2proj)
+                        email_body = create_email_body(subject, mesg.email, locals.email_address, mesg.title, mesg.link2proj, await @allow_urls_in_emails())
                     catch err
                         cb(err)
                         return

        # (a) the sender is a paying customer or (b) the project has network access.
        #
        # ATTN: this must harmonize with smc-webapp/projects → allow_urls_in_emails

        is_paying = await is_paying_customer(@database, @account_id)
        has_network = await project_has_network_access(@database, mesg.project_id))
        allow_urls_in_emails = is_paying or has_network

        @touch()
        @get_project mesg, 'write', (err, project) =>

                @push_to_client(message.user_search_results(id:mesg.id, results:locals.results))
        )


    # this is an async function
    allow_urls_in_emails: =>
        is_paying = await is_paying_customer(@database, @account_id)
        has_network = await project_has_network_access(@database, mesg.project_id)
        return is_paying or has_network

    mesg_invite_collaborator: (mesg) =>
        @touch()
        dbg = @dbg('mesg_invite_collaborator')
