I am trying to send activation mail to the currently registered user.In mail body,I need to send a link like http://example.com/account/activation?username=d&email=g.Now, for debugging on local machine, I manually write it as localhost:30995/account/activation?username=d&email=g. But, when my port number changes, I need to rewrite it. I tried another question on this website,but, compiler gives error like url.action doesnot exist.
Please give me fresh solution as I am confused with that solution.