html按钮发送电子邮件 [英] html button to send email
本文介绍了html按钮发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从HTML中的按钮发送标题主题
和消息
的指定初始值的电子邮件,例如这个
< form method =postaction =mailto:email.com?subject = subject& message =消息>
其中主题
和消息
是从表单中获取的值
?
解决方案
您可以使用 mailto
,以下是HTML代码:
< a href =mailto:EMAILADDRESS>
用您的电子邮件替换 EMAILADDRESS
p>
How do I send an email with specified initial values for the headers subject
and message
from a button in html, such as this
<form method="post" action="mailto:email.com?subject=subject&message=message">
where subject
and message
are values fetched from a form
?
解决方案
You can use mailto
, here is the HTML code:
<a href="mailto:EMAILADDRESS">
Replace EMAILADDRESS
with your email.
这篇关于html按钮发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文