简体   繁体   English

我可以在电子邮件中使用自定义 html-css-js 表单吗?

[英]Can I use custom html-css-js form within an Email?

I need to insert my own form in a gmail email, so that my client can fill that form, press a submit button and trigger a response with the form content to my domain.我需要在 Gmail 电子邮件中插入我自己的表单,以便我的客户可以填写该表单,按下提交按钮并触发对我的域的表单内容的响应。 I already did the template (example image below) and successfully sent the email with it using python gmail API by inserting the html code in the body.我已经完成了模板(下面的示例图片)并通过在正文中插入 html 代码使用 python gmail API 成功发送了电子邮件。 My question is the following: Once the user completes the form, how do I get the info in my domain server?我的问题如下:一旦用户完成表单,我如何在我的域服务器中获取信息? Maybe by doing an ajax request when the button is pressed?也许通过按下按钮时执行 ajax 请求?

Help will be much appreciated!帮助将不胜感激!

Thank you!!谢谢!!

Template example:模板示例: 在此处输入图片说明

All javascript code is blocked by Gmail for security reasons.出于安全原因,Gmail 会阻止所有 javascript 代码。 It would probably work with <form action="https://external-domain.com"> but I don't think so that's a good practice.它可能适用于<form action="https://external-domain.com">但我认为这不是一个好习惯。 Probably sending user to your page with the accually form by a tag is a better call.也许用户发送到您的网页由accually形式a标签是一个更好的通话。

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

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