[英]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.