Hi,

So I have a website running locally and in testing environment and in production. I need to send an email in which I want to send the link of the website.

How do I get the current website link from the website code itself programmatically? So If I run the website in dev/test/prod, it sends the link to the environment it is hosted in?