[英]Send email via HTML from predefined emailID
I have a feedback form which consist of 5 fields like name,contact Number etc, and a button to send. 我有一个包含5个字段(例如姓名,联系电话等)和发送按钮的反馈表。 I want whenever user inputs the field and hits send button an email containing the values from these fields should be sent to a particular mail id bur "FROM MY DEFINED" mail address, I dont want mailto option as it allows the user to send email from his account.
我希望每当用户输入该字段并单击“发送”按钮时,包含这些字段值的电子邮件都应发送到特定的邮件ID bur“ FROM MY DEFINED”邮件地址,我不希望使用mailto选项,因为它允许用户从他的帐户。 I know this with ASP.NET but i need with simple HTML or javascript or jquery.
我知道与ASP.NET,但我需要简单的HTML或javascript或jquery。
Please Help. 请帮忙。 Thank You
谢谢
You need a server side technology to send email. 您需要服务器端技术来发送电子邮件。
If you want to use JavaScript, then there are a number of packages for sending email in npm . 如果要使用JavaScript,则npm中有许多用于发送电子邮件的软件包 。 (Note this is server side JavaScript, the browser doesn't provide any tools that you can use for this).
(请注意,这是服务器端 JavaScript,浏览器未提供可用于此目的的任何工具)。
The closest you can get to submitting form data over email with just common client side technologies is the mailto:
scheme which: 仅使用常见的客户端技术,通过电子邮件提交表单数据最接近的方法就是
mailto:
方案 :
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.