问题描述
您好,先生,请给我代码
hoe从html发送电子邮件
我的领域
名称-
消息-
[更新]
您好先生,没有Outlook,请不要使用Outlook
如果您不想打开Outlook,请使用send mail或使用以下命令.
hello sir give me code
hoe to send email from html
my field
name--
message--
[UPDATE]
Hello sir not use outlook without outlook
use send mail or use following if you don''t want to open outlook
推荐答案
<a href="mailto:email?subject=sub&body=msg">send mail </a>
;如果您不想打开Outlook,请使用以下命令
or use following if you don''t want to open outlook
<html>
<head>
<title> New Document </title>
</head>
<html>
<body>
<form action="MAILTO:pankajupadhyay29@gmail.com" method="post" enctype="text/plain">
<h3>This form sends an e-mail to pankajupadhyay29@gmail.com.</h3>
Name:<br>
<input type="text" name="name">
value="Name size="20">
<br>
Mail:<br>
<input type="text" name="mail">
value="Mail id" size="20">
<br>
Comment:<br>
<textarea>
</textarea>
</br><br>
<input type="submit" value="Send">
<input type="reset" value="Reset">
</input></input></br></br></input></br></br></input></br></form>
</body>
</html>
</html>
this code is taken from here[^]
<form action="My-Email-sender-URL" method="post" ...>
...
</form>
安全警告!使用类似的帖子在服务器端发送电子邮件是容易受到恶意攻击的目标,它可以使HTTP服务器变成垃圾邮件发送的幽灵,因为该帖子可以通过编程方式完成.您不应直接使用任何已发布的数据,尤其是对于电子邮件标题.您需要检测并过滤出意外数据. (我不得不修复此类安全漏洞,并在现实生活中面临此类攻击.)
Security warning! Using posts like that for sending e-mail on the server side is an easy target for malicious attack which can turn you HTTP server into the spam-sending ghost as the post can be done programmatically. You should not use any posted data directly, especially for e-mail headers. You need to detect and filter out unexpected data. (I had to fix such security holes and faced such attacks in real life.)
这篇关于如何从HTML发送电子邮件......................................的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!