Thanks Ryan. I have tried this option but did not work for me unfortunately. However I found my own solution. All I have to do is configure some Alternate Access Mapping settings as described in this blog.
http://sharepointrealm.blogspot.com/2013/05/change-url-of-emails-send-in-document.html
Merin