简体   繁体   English

通过HTML从预定义的emailID发送电子邮件

[英]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:方案

  • You have already rejected 您已经拒绝了
  • Doesn't work most of the time anyway 反正大部分时间都无效

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

相关问题 如何将多个文件附加到电子邮件并将其动态发送到多个emailid - how to attach multiple files to email and send it to multiple emailid dynamically php 有没有一种方法可以使用HTML通过gmail发送电子邮件 - is there a way to use HTML to send an email via gmail 尝试从 html 输入中获取发布数据并通过 php 将其作为消息发送到电子邮件中 - trying to get post data from html input and send it in email as a message via php 提交html表单并通过电子邮件发送(PHP,AJAX,HTML) - Submitting html form and send it via email (PHP, AJAX, HTML) 如何在节点 js(nodemailer) 中不提供我的 emailid 和密码的情况下发送电子邮件? - How to send email without providing my emailid and password in node js(nodemailer)? 如何在 HTML 中制作一个按钮,该按钮将通过 email 发送网站的当前页面? - How to make a button in HTML that will send the current page of a website via email? HTML表单:通过jQuery和PHP邮件发送其他通知电子邮件 - HTML form: Send an additional notification email via jQuery and PHP mail 使用 JS 从 HTML 页面发送 email - Send email from HTML page using JS 从 HTML/CSS/JS 应用程序发送电子邮件 - send an email from a HTML/CSS/JS app NodeMailer 使用数据库中的模板发送 HTML email - NodeMailer send HTML email with template from database
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM