I have a multi site Sitecore installation. I am trying to create an email that gets sent out that contains links back to the Sitecore editor for each item. I have it all working except the correct domain name. Given an item ID how would I use the API to get the domain for that item? For example - I want to produce a URL like the following:
http://www.mySite1.com/sitecore/shell/sitecore/content/Applications/Content Editor.aspx?id=id
The only part I'm not sure about is how to programmatically retrieve the "www.mySite1.com" part. Any ideas? I can never find stuff like this in the Sitecore API although I am sure it is there somewhere.