More reliable Base URL implementation in email templates