I'm using Url.Action to generate link in e-mails (with the Postal MVC Framework) that was sent by my application, however, the links generates are showing with "localhost" name, and not domain name.
I'm using the following code:
@Url.Action("AlterarSenha", "Account", null, this.Request.Url.Scheme)
The result is the following:
http://localhost/Account/AlterarSenha
After that, I tried the following code:
@Url.Action("AlterarSenha", "Account", null, this.Request.Url.Scheme, Request.ServerVariables["HTTP_HOST"])
And I got the same result.
How can I get the link with my domain like:
http://www.servicili.com/Account/AlterarSenha
@Url.Action("AlterarSenha", "Account")
– user3559349http://account/AlterarSenha
– Dan