I need to send emails after certain events in my application, and in those emails include a URL that points to an application URL. For example, when a user registers for an account, I send them an email with a confirmation URL in it so they can activate the account. The emails are sent via a method interceptor on the business layer.
My question is: what is the best way to access the web-context specific information from the business layer? I would like not to have to code in the web context or web controller if possible. Currently I just use a property like
my.url=http://foo.bar/thing
but wondered if there was perhaps a better way?


Reply With Quote