HTML电子邮件内容触发表单方法 - POST [英] HTML Email Content to trigger form Method - POST

查看:113
本文介绍了HTML电子邮件内容触发表单方法 - POST的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



需要帮助。我正在生成一个包含HTML和表单属性的电子邮件内容,例如post。

此电子邮件已发送给某人进行批准。因此,所有人要做的就是单击电子邮件中的提交链接或按钮以触发post方法以在新窗口中打开弹出窗口并从电子邮件html内容中获取隐藏值。



我试过按钮不会显示在电子邮件中,所以我切换到链接。然而它仍然无效。



Hi Guys,

Need help. I am generating a email content with HTML and form attribute like post.
This email was send to a person for approve. So all the person has to do is to click the submit link or button on the email to trigger the post method to open up the pop up in a new window and get the hidden value from the email html content.

I tried that the button will not be display in the email so i switch to link. However it still did not work.

<form id ="form-id"  method="post" target="_blank" action="http://localhost:49767/UserAccessSetup.aspx"><br />
<a href="#" önclick="document.getElementById('form-id').submit();">Acknowledge</a><br />
</form><br />



可以提供建议吗?



感谢很多人


Can advise on it?

Thanks Alot guys

推荐答案

为了安全考虑,现代电子邮件客户端不允许电子邮件中的活动内容。这很好。你将不得不忍受它。

你需要用简单的链接,而不是形式。只需生成与要批准的内容相关联的随机ID,并在链接中使用它。
Modern email clients won't allow active content in the email for security considerations. And that is good. You will have to live with it.
You need to do it with simple links, not form. Just generate a random id associated with the content to be approved, and use it in the link.


这篇关于HTML电子邮件内容触发表单方法 - POST的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆