properly clean base url for mailing templates. also make intentions clear to mr T