Reo Posted November 19, 2013 Share Posted November 19, 2013 Hi, I have installed a postcard service that is called freeze greetings. It is all up an running but the problem is that the e-mails sent out do not contain a proper link back, so therefor it is not possible to view the postcard. The adress to the postcard is partly missing. You can try it out for yourself at this adress: http://moonrock.net76.net/greetings Quote Link to comment https://forums.phpfreaks.com/topic/284053-postcard-with-dead-link/ Share on other sites More sharing options...
Solution Ch0cu3r Posted November 19, 2013 Solution Share Posted November 19, 2013 Your sites url is not being added t to the email this is the url I get in the email http://?action=view&id=1384869148 This is due to this line $link="http://${HTTP_HOST}${PHP_SELF}?action=view&id=$today"; This will only work if a setting called register_globals is enabled. Try and change it to $link="http://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}?action=view&id=$today"; Quote Link to comment https://forums.phpfreaks.com/topic/284053-postcard-with-dead-link/#findComment-1458988 Share on other sites More sharing options...
Reo Posted November 19, 2013 Author Share Posted November 19, 2013 Yes indeed. Register_globals ey. Why didn't I think of that? Anyway, now it seems to work perfectly. I may post this trick to the developers as well. Thank You for your help. Quote Link to comment https://forums.phpfreaks.com/topic/284053-postcard-with-dead-link/#findComment-1459051 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.