I have the following in a click-event for a link. The link works fine and the email reaches the receiver.
But there is a link in the email back to the page you came from. This doesn't work.
Append(EPiServer.Configuration.Settings.Instance.SiteUrl + CurrentPage.LinkURL.Remove(0, 1)).
Append("\n\nMessage was sent from IP address ").
Append(" at ").