简体   繁体   English

将一些文本框中的内容邮寄到带有html的gmail

[英]mailing content in a few text-boxes to a gmail with html

I want to make a simple project with HTML where I put my email address in one textbox and my name in another one. 我想用HTML创建一个简单的项目,将我的电子邮件地址放在一个文本框中,而我的名字放在另一个文本框中。 The problem is, I don't know how to do this. 问题是,我不知道该怎么做。 Here is my project: 这是我的项目:

https://codepen.io/dewball777/pen/KGNVyR https://codepen.io/dewball777/pen/KGNVyR

<backtext> was just an <h1> with a background and a monospace font 

What I want is that the code should send the email to the email address in the email address textbox and the message is their name in the second textbox. 我想要的是代码应将电子邮件发送到电子邮件地址文本框中的电子邮件地址,而消息是第二个文本框中的电子邮件名称。

You need create a form with your content. 您需要使用您的内容创建一个表单。

May be using js to setting mail. 可能使用js设置邮件。

Ex: 例如:

<form action="mailto:someone@example.com" method="post" enctype="text/plain"></form>

You can reference on : https://www.w3schools.com/html/tryit.asp?filename=tryhtml_form_mail 您可以参考: https : //www.w3schools.com/html/tryit.asp?filename=tryhtml_form_mail

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

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