简体   繁体   中英

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. The problem is, I don't know how to do this. Here is my project:

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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