Creating responsive forms

i want to create a form which sends a sign-up confirmation email to the users after submitting the form How could i do that?

sending mails requires a mail server, so you would need to configure a mail server yourself or see if there is an existing service/API to which you can make a request with JavaScript