简体   繁体   English

通过电子邮件通讯中的mailto设置电子邮件正文的表格

[英]Form to Set body of E-mail via mailto in E-Mail Newsletter

Is there something we're missing to get the following code working in E-Mail clients / Web Mail:我们是否缺少让以下代码在电子邮件客户端/网络邮件中工作的东西:

<form action="mailto:a@b.com">
<input type="hidden" name="Subject" value="Email subject">
<textarea style="resize:none;" rows="5" cols="22" value="Body" name="Body">Default text area</textarea><br />
<input type="submit" name="Ask Question" >
</form>

The idea is that the recipient can ask a question of our team by typing their question into a text area ('Body') and clicking the button will open their default mail client/web mail with the message nicely composed for them to review and click send.这个想法是,收件人可以通过在文本区域(“正文”)中输入他们的问题来向我们的团队提问,然后单击按钮将打开他们的默认邮件客户端/网络邮件,其中包含精心编写的消息供他们查看和单击发送。

Clearly any kind of PHP or scripting is off limits as this strictly to be used in an e-mail newsletter template.很明显,任何类型的 PHP 或脚本都是禁止的,因为这严格用于电子邮件通讯模板。

try to use this one with尝试使用这个

<a href="mailto:someone@example.com?subject=MySubject&body=Mymessage"> Send mail </a>

you need to get the message and subject value from form and add that in link .您需要从表单中获取消息和主题值并将其添加到链接中。 also try to use with your form也尝试与您的表单一起使用

<form action="mailto:myforms@mydomain.com" enctype="text/plain" >

also you can try this one你也可以试试这个

<form action= "mailto:myforms@mydomain.com?subject=myform_submission" enctype="text/plain" onsubmit="location.href='thanks.html';" >

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM