Hello,
I am using GetRequestDomain() to build a link to my site in the body of an email. This code is in a server action. I have a test page with a button that calls this server action which works correctly - the full url of my site with the domain name is in the link. However, I have a timer set to call this server action. The email generated from the timer replaces the domain with 127.0.0.1
Does anyone know why this would happen??
Thanks
Hi Michael,
Functions like GetServerName() or GetRequestDomain() return localhost when used inside timers or emails. You should create an input for the Emailscreen instead and pass the URL value to it.
Check out the solution given in this post.
https://www.outsystems.com/forums/discussion/18670/getting-absolute-url-in-email/
Regards,
Nordin