email messages with site url improved

site url can be defined in the configuration file server-config.json or can be set from the url used