The email that goes out from LegacyUrlHandler includes links that only work if the site is installed on the default port:80. If you use a different port number to host your website (including VisualStudio builds), the links in the generated email are broken.
Related discussion: http://compositec1.codeplex.com/discussions/616223
Comments: ** Comment from web user: burningice **
Related discussion: http://compositec1.codeplex.com/discussions/616223
Comments: ** Comment from web user: burningice **
The problem is that you need a HttpContext for doing that. You don't always have an HttpContext when sending emails, ie. if they're sent from a background worker thread.