Click here to Skip to main content
15,895,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Mail functionality was not working in Win8.1 as the string length was very big.Using classic asp code.
So I have changed the code as below:
Previous code:




Changed code:

XML
<a href ="#" onclick="javascript:doMailto(); return false;">Send Email</a>

<script type="text/javascript">
   var sMailto = "mailto:mail@something.com;mail@something.com;mail@something.com?subject=A really long subject can go here if you want and it will work Im telling you&body=Click for detailed profileClick for detailed profileClick for detailed profileClick for detailed profileClick for detailed profileClick for detailed profileClick for detailed profileClick for detailed profileClick for detailed profileClick for detailed profileClick for detailed profileClick for detailed profileClick for detailed profileClick for detailed profileClick for detailed profileClick for detailed profileClick for detailed profileClick for detailed profileClick for detailed profileClick for detailed profileClick for detailed profileClick for detailed profileClick for detailed profileClick for detailed profileClick for detailed profileClick for detailed profileClick for detailed profileClick for detailed profile&cc= &bcc= mail@something.com";

   function doMailto() {
      window.open(sMailto);
   }

</script>


After this cahnge the mail is opening but a new blank tab is opening in the IE. How to prevent this opening of a new tab?

Thanks in Advance.
Posted
Updated 13-Jan-15 20:51pm
v3
Comments
Abhinav S 14-Jan-15 2:25am    
Code is missing.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900