Email a copy of consent agreement when user consents to research

You need to throw an error if the HOST header is not set correctly to detect this.