Last post Jun 25, 2008 10:16 AM by ancyv
May 29, 2008 08:17 AM|ancyv|LINK
I have an application which sends a mail to a user (through outlook express) with a link to a webpage. In certain user systems, the webpage opens in an existing browser window (due to certain system specific settings). I need to force the webpage to open
in a new browser window in all the systems irrespective of the settings
Please suggest a method to resolve this
May 29, 2008 08:49 AM|worldclasscoders|LINK
use target=_blank in link
<a href="yourlink.htm" target="_blank">Your text goes here</a>
May 29, 2008 08:50 AM|RicIshay|LINK
try adding target="_Blank" in the link tht ur emailing
May 29, 2008 12:48 PM|ancyv|LINK
But the issue here is that the link is appended as a string to the mail body in aspx.cs file.
As such, when we try to add the href tag to the string using the following piece of code
mailBodyHeader = mailBodyHeader + "<a href = '
the output in the mail looks like
please click on the following link to approve the request :
<a href = '
I have also tried changing the bodyformat to HTML and using using html tags, but none of this seems to work
May 29, 2008 03:25 PM|NC01|LINK
mailBodyHeader += "<a href = 'http://localhost/AdminConsole/UserRequest/ManagerProcess.aspx?requestId=" + requestID + "' TARGET='_blank'>Click me</a>";
Jun 25, 2008 06:13 AM|ancyv|LINK
Thanks.... that worked...[:D]
However... I have a new issue now...
When I try to forward this HTML formatted mail... the text of the mail overlaps with the information generated by the outlook for the previous mail i.e
From:, Sent:, Subject etc.
Thanks again for the help
Jun 25, 2008 10:16 AM|ancyv|LINK
The mail position needed to be set to static . It was earlier set to absolute...