Shadowing Posted February 23, 2012 Share Posted February 23, 2012 Hey guys im having a problem with emailing a link using local host mail. I'm using out look express with Mercury. I shorten the email below as much as possible. Its really wierd the target for the link is correct but clicking on it gives me this res ieframe.dll res://ieframe.dll/syntax.htm#http//localhost/stargate/users/account_settings.php? npd=82b1e0df295ee681f1fa2f213ade823d $to = $_POST['resendemail']; $from = "[email protected]"; $subject = "Stargate System Lords Password Recovery"; $message = "<html> <body background=\"#4B4B4B\"> <h1>Stargate System Lords Password Recovery</h1> Dear ".$users1['name'].", <br> <center> <a href="localhost/stargate/users/account_settings.php?npd=$new_password ">Log In</a> <p> <br /> </font> </body> </html>"; $headers = "From: Stargate Game Password Recovery <[email protected]>\r\n"; $headers .= "Content-type: text/html\r\n"; mail($to, $subject, $message, $headers); Link to comment https://forums.phpfreaks.com/topic/257635-problem-with-showing-a-link-in-a-email-for-outlook-express/ Share on other sites More sharing options...
dragon_sa Posted February 23, 2012 Share Posted February 23, 2012 try this for the message bit $message = "<html>\n"; $message .= "<body background=\"#4B4B4B\">\n"; $message .= "<h1>Stargate System Lords Password Recovery</h1>\n"; $message .= "Dear ".$users1['name'].", <br>\n"; $message .= "<center>\n"; $message .= "<a href=\"localhost/stargate/users/account_settings.php?npd=$new_password\">Log In</a>\n"; $message .= "<p><br />\n"; $message .= "</font>\n"; $message .= "</body>\n"; $message .= "</html>\n"; that link in the email tho should really point to a domain name I believe not localhost Link to comment https://forums.phpfreaks.com/topic/257635-problem-with-showing-a-link-in-a-email-for-outlook-express/#findComment-1320475 Share on other sites More sharing options...
Shadowing Posted February 24, 2012 Author Share Posted February 24, 2012 Thanks for the responce dragon_sa Tried your approach with the same result I took a picture to help show whats going on If you look at the bottom of the screen it shows the correct link. If a copy that link and paste it in the browser it works fine. but for some reason as soon as I click Log in on the link it adds all this stuff before the link which makes it give a white page error res://ieframe.dll/syntax.htm#localhost/stargate/users/account_settings.php? npd=dda6979aa83d183bb602fb05860849fe Link to comment https://forums.phpfreaks.com/topic/257635-problem-with-showing-a-link-in-a-email-for-outlook-express/#findComment-1320664 Share on other sites More sharing options...
Shadowing Posted February 24, 2012 Author Share Posted February 24, 2012 Turns out after googling the issue. that the problem is is a windows xp issue or from installing and uninstalling broswers. So working on trying to fix it Link to comment https://forums.phpfreaks.com/topic/257635-problem-with-showing-a-link-in-a-email-for-outlook-express/#findComment-1320684 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.