简体   繁体   English

用户特定的邮件以html和js发送

[英]user specific mail sending in html and js

I have send subject and body along with mail id in html href tag 我在html href标签中发送了主题和正文以及邮件ID
like this, 像这样,
href="mailto:a@a.comsubject=Your+tip+on+mailto+links&body=Thanks+for+this+tip" HREF = “电子邮件地址:a@a.comsubject=Your+tip+on+mailto+links&body=Thanks+for+this+tip”
now I want to create form in which user will fill data and after click on "send" button that data gets combine with body tag in href link. 现在我想创建用户将填充数据的表单,然后单击“发送”按钮,数据与href链接中的body标签结合。 so is it possible ? 有可能吗?

So far what I have understood from your question is that you are willing to get the href attributes for submitting the form value. 到目前为止,我从您的问题中理解的是,您愿意获取提交表单值的href属性。 If it is in the same page along with the form then you can use get attribute method for getting and using the values on your function. 如果它与表单在同一页面中,则可以使用get属性方法获取和使用函数上的值。 If it is on some other page then you muct send those attributes to the page where your form is. 如果它在某个其他页面上,那么您将这些属性发送到表单所在的页面。

If you provide your code sample then more specific things could be said. 如果您提供代码示例,则可以说更具体的内容。

Hope it helps..:) 希望能帮助到你..:)

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

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