简体   繁体   English

我如何从 Html FORM 接收数据到我的电子邮件?

[英]How i can receive data from Html FORM to my Email?

i want to receive data that submitted from Html FORM to my company email or any email and show to the user the thank you page.我想接收从 Html FORM 提交到我公司电子邮件或任何电子邮件的数据,并向用户显示感谢页面。

<form  method="post" action="">
    <div class="form-wrap">
        <label class="form-label" for="contact-name">Name</label>
        <input class="form-input" id="contact-name" type="text" name="entry.1430967391" data-constraints="@Required">
    </div>
    <div class="form-wrap">
        <label class="form-label" for="contact-phone">Phone</label>
        <input class="form-input" id="contact-phone" type="text" name="entry.465166061" data-constraints="@Required @PhoneNumber">
    </div>
    <div class="form-wrap">
        <label class="form-label" for="contact-email">E-Mail</label>
        <input class="form-input" id="contact-email" type="email" name="entry.1309662733" data-constraints="@Required @Email">
    </div>
    <div class="form-wrap">
        <label class="form-label" for="contact-message">Message</label>
        <textarea class="form-input" id="contact-message" name="entry.329807308" data-constraints="@Required"></textarea>
    </div>
    <div class="form-button">
        <button id ="myBButton"class="button button-primary-gradient btn-sm" type="submit" onclick="pr11"><span>Send</span></button>
    </div>
</form>

have you used PHPMailer?你用过 PHPMailer 吗? go through https://github.com/PHPMailer/PHPMailer .通过https://github.com/PHPMailer/PHPMailer

Your best bet is to use a serverside language and you selected PHP as a tag to your question so I will recommend that.您最好的选择是使用服务器端语言,并且您选择 PHP 作为您问题的标签,因此我会建议您这样做。

Here is a link that will help you understand and implement what you need.这是一个链接,可帮助您了解和实施您所需要的。 Ask questions if you have any.如果你有任何问题,请提出问题。 Glad to help!乐意效劳!

https://html.form.guide/email-form/php-form-to-email.html https://html.form.guide/email-form/php-form-to-email.html

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

相关问题 如何从 html 表格接收数据 - How to receive data from html form 如何从其他html页面的html表单POST接收数据? - How to receive data from html form POST at other html page? 请问如何使用sketchware将我的登录表单数据发送到我的email地址 - Please How can I send my login form data to my email address with sketchware 在我从 controller 接收数据之前,如何在我的 Angular 应用程序中处理来自 html 的未定义属性? - How do I handle undefined properties from the html in my Angular application before I receive data from my controller? 我无法从我的PHP文件接收JS中的数据 - I can't receive data in JS from my PHP file ReactJS:如何从外部应用程序接收表单数据 - ReactJS: how do I receive form data from external application 如何将HTML表单提交与JavaScript表单更新分开? - How can I separate my HTML form submit from my JavaScript form update? 如果表单字段留空,如何从HTML电子邮件中删除表行 - How Can I Remove A Table Row From An HTML Email If Form Field Is Left Blank 如何预填充和html表单字段以通过电子邮件发送? - How can I prefill and html form field to send by email? 如何使用json的ionic 2在HTML中显示此数据? - How can i show this data in my html with ionic 2 from a json?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM