Hotmail Frame of Shame

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
virgil
Forum Commoner
Posts: 59
Joined: Thu Jun 13, 2002 11:43 pm
Location: New York, U.S.

Hotmail Frame of Shame

Post by virgil »

Hi Php's :D

When an e-mailed link in a hotmail message is followed, hotmail opens a new window with its own title and banner frame. Direct links to my site now have no title bar unless the page is redirected manually with a <a href... Target='_top'>.


Does anyone have any ideas how to force an <a href in a hotmail recieved email to break out of the hotmail banner framed window?


I tried...



Code: Select all

if($a===TRUE)&#123;
$sender="name";
$sender_email="any.com";

$headers = "MIME-Version: 1.0\n";
$headers .= "From: $sender <$sender_email>\n";
$headers .= "Reply-To: <$sender_email>\n";
$headers .= "X-Sender: <$sender_email>\n";
$headers .= "X-Mailer: PHP4\n"; //mailer
$headers .= "X-Priority: 3\n"; //1 UrgentMessage, 3 Normal
$headers .= "Return-Path: <$sender_email>\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\n";

//this dosent do the trick
$body=<a href='http://www.any_site.com/any_page.php?target=_top' target='_top'>click here</a>



 mail($receiver_Email,"E-mail Confirmed", "$body", "$headers");
&#125;



They do attach anew part to your URL...

http://64.4.36.250/cgi-bin/linkrd?_lang ... ___action=
http%3a%2f%2fwww%2eany_site%2ecom%2fany_page%2ephp%3ftarget%3d_top





This kind of forced advertising really ticks me off.

I'm tring to link to an internal page where there is nothing
identifing the site except the title bar.


Any ideas at all would be most appreciated.


Thanks
Virgil :)
evilcoder
Forum Contributor
Posts: 345
Joined: Tue Dec 17, 2002 5:37 am
Location: Sydney, Australia

Post by evilcoder »

i know somehow there is a way to close a frame down. i've seen it dont somewhere.

What you would need to do is find out what hotmail calls its frame, then find the frame cancel snippet, and call it like that.

But other then that, i'm all out of ideas.
grief
Forum Newbie
Posts: 3
Joined: Sun Feb 09, 2003 4:08 am
Location: Far Far up a tree

Post by grief »

try this


<SCRIPT LANGUAGE="JavaScript">
if (window != top) top.location.href = location.href;
</script>
redJag
Forum Newbie
Posts: 18
Joined: Fri Jan 31, 2003 12:17 am

Re: Hotmail Frame of Shame

Post by redJag »

virgil wrote:This kind of forced advertising really ticks me off.
Well it is a free service. Sorry that's all I have to contribute, though, since I hate Microsoft :)
Post Reply