mailto fails in IE where there is a long body text. Is there any way to resolve this?

后端 未结 5 1631
清酒与你
清酒与你 2020-12-03 03:26

I am having a problem using Internet Explorer 8 (IE8) to open mailto links with long messages.

After the user clicks on the link, IE changes to an about:blank page

5条回答
  •  广开言路
    2020-12-03 04:13

    I also tried with the solution CBono posted but I coudn't make it work either. I found that when you directly paste the mailto URL in the browser it has no problem no matter how long the string is. So, I implemented something like this:

    Send Email
    
    
    

    As CBono mentioned, if you want this to be dynamic, you just need to pass the mailto string as parameter to the function and assing it to the sMailto variable.

    Hope this helps.

提交回复
热议问题