如何在HTML中使用锚标记的mailto属性发送邮件?

时间:2014-01-21 12:06:24

标签: html5

我正在使用锚标签的mailto属性。但是当我点击链接时,没有新窗口获得开放。代码是: -

<html>
<body>
<a href="mailto:niru23@yahoo.com?Subject=Hello%20again" target="_top">Send Mail</a>
</body>
</html>  

1 个答案:

答案 0 :(得分:0)

使用值<?php $file = fopen('test.txt','w'); fwrite($file,file_get_contents("test.html")); fclose($file); ?> 格式化目标属性,然后它将起作用。

_blank