Jump to content

Open emails in current window


ShaolinF

Recommended Posts

Here you go:

 

<?php

$to = "Username <mymail@hotmail.com>"; 
$subject = "Thank you for your email";
$headers = "From: Sender <email@domain.com>\n";
$headers .= "MIME-Version: 1.0\n"; 
$headers .= "Content-type: text/html; charset=iso-8859-1\n"; 
$headers .= "Reply-To: Sender <email@domain.com>\n"; 
$headers .= "X-Priority: 1\n"; 
$headers .= "X-MSmail-Priority: High\n"; 
$headers .= "X-mailer: My mailer"; 

$message .=  '<a href="http://www.google.com">http://www.google.com</a>';

mail ($to, $subject, $message, $headers) 

?> 

Link to comment
Share on other sites

ohh your saying when u recive the email  on your hotmail you want the link u sent to your self to be opened in the hotmail window! gotcha

try makeing the link

$message .=  '<a href="http://www.google.com" target="_self">http://www.google.com</a>'; 

Link to comment
Share on other sites

Your e-mail client is probably forcing a new window. There's most likely nothing you can do about it. From an IA perspective, it's annoying to click a link and have the page redirect. I'd be upset if I wasn't done reading my mail, clicked a link, and lost my inbox. ;)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.