Scenario: I am using Salesforce sites to display a form where a user can enter some data. When a user finshes, I have an email alert setup with a link in it to send the user to another page on the site.
Problem: Setting the URL on the link in the email alert to direct to the Sandbox version of the site if the email is being tested from Sandbox, and vice-versa for Production. None of the $Site global variables assist here because the email alert does not come from the Site domain. I'd rather not hard-code this information.