move url-oriented material into if url exists block; convert custom message html to text and use in mail text version