jeboy Posted March 25, 2008 Share Posted March 25, 2008 Is it possible to mask the url of links inside an email? e.g. the url is: http://www.domain.com/contact.php?id=2&name=john but will display as: http://domain.com/contact.php only when the mouse pointer hovers the link Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/97746-is-it-possible-to-mask-the-url-of-links-inside-an-email/ Share on other sites More sharing options...
sKunKbad Posted March 25, 2008 Share Posted March 25, 2008 use a standard link, but use a javascript onclick event with window.location="" Quote Link to comment https://forums.phpfreaks.com/topic/97746-is-it-possible-to-mask-the-url-of-links-inside-an-email/#findComment-500151 Share on other sites More sharing options...
jeboy Posted March 25, 2008 Author Share Posted March 25, 2008 Is it possible to use javascript in email? Quote Link to comment https://forums.phpfreaks.com/topic/97746-is-it-possible-to-mask-the-url-of-links-inside-an-email/#findComment-500152 Share on other sites More sharing options...
cunoodle2 Posted March 25, 2008 Share Posted March 25, 2008 not as far as I know. Would a site like tinyurl.com help for what you are looking for? That way the user would not be able to see any URLs. OR you could send out the email in html and make it say. To access your account click ... HERE And make the word "HERE" a hyperlink to your site??? Quote Link to comment https://forums.phpfreaks.com/topic/97746-is-it-possible-to-mask-the-url-of-links-inside-an-email/#findComment-500175 Share on other sites More sharing options...
jeboy Posted March 25, 2008 Author Share Posted March 25, 2008 Thanks. I know your point, what I mean is when a user mouse over the hyperlinks, it will display a short url only instead of the real url which has parameters. On major email clients like Outlook 2007, when you mouse over a hyperlink it will show the url of that hyperlink and that's what I'm trying to mask. e.g. <a href="http://www.domain.com/ads.php?id=100">Advertise</a> This will show the "Advertise" hyperlink inside the email and when you mouse over or hover it, it will display the "http://www.domain.com/ads.php?id=100" url, what I'm trying to do is to mask this url to "http://www.domain.com/ads.php". Quote Link to comment https://forums.phpfreaks.com/topic/97746-is-it-possible-to-mask-the-url-of-links-inside-an-email/#findComment-500817 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.