Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,149,894 members, 7,806,611 topics. Date: Tuesday, 23 April 2024 at 07:02 PM

Form Submitting To Email - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Form Submitting To Email (952 Views)

How To Create Form To Email? (2) (3) (4)

(1) (Reply) (Go Down)

Form Submitting To Email by superkoolkat(m): 1:21pm On Mar 22, 2020
I need to rig a phishing form in such a way that when the data is entered, the form submits to an email address. I want the form to also work if downloaded locally into the machine as long as there is internet connection. Who can give me tips on how to make this work
Re: Form Submitting To Email by Nairalandmonika: 1:23pm On Mar 22, 2020
What kind of form, is it html form?
Re: Form Submitting To Email by superkoolkat(m): 2:04pm On Mar 22, 2020
Nairalandmonika:
What kind of form, is it html form?
Yes. A regular HTML form
Re: Form Submitting To Email by Nairalandmonika: 2:14pm On Mar 22, 2020
superkoolkat:

Yes. A regular HTML form
They are two ways to do this. This first one is using action=mailto
Example
<Form method="post" action="mailto: example@gmail.com">

This second method requires php
U create a backend where the form details are been sent to, then use php mail function or php mailer library to send the details to any email u want.

As for downloading the form, u could use JavaScript print function, with this can save the form as PDF file on your phone or laptop
Re: Form Submitting To Email by superkoolkat(m): 2:26pm On Mar 22, 2020
Nairalandmonika:

They are two ways to do this. This first one is using action=mailto
Example
<Form method="post" action="mailto: example@gmail.com">

This second method requires php
U create a backend where the form details are been sent to, then use php mail function or php mailer library to send the details to any email u want.
Would I need to subscribe to any hosting plan?

Nairalandmonika:


As for downloading the form, u could use JavaScript print function, with this can save the form as PDF file on your phone or laptop
Let me clarify, i want to be able to send the form as HTML file to another machine, fill in details and it submits to a general email regardless of machine. The JavaScript print you mentioned makes me feel u dont quite understand my need
Re: Form Submitting To Email by Maymac(m): 2:31pm On Mar 22, 2020
If I want the form to be sent to my goggle spreadsheet, how will I go about it?
Nairalandmonika:

They are two ways to do this. This first one is using action=mailto
Example
<Form method="post" action="mailto: example@gmail.com">

This second method requires php
U create a backend where the form details are been sent to, then use php mail function or php mailer library to send the details to any email u want.

As for downloading the form, u could use JavaScript print function, with this can save the form as PDF file on your phone or laptop
Re: Form Submitting To Email by Nairalandmonika: 2:32pm On Mar 22, 2020
superkoolkat:

Would I need to subscribe to any hosting plan?


Let me clarify, i want to be able to send the form as HTML file to another machine, fill in details and it submits to a general email regardless of machine. The JavaScript print you mentioned makes me feel u dont quite understand my need
Oh, I don't quite get u but from my understanding what u need is Google form. It's quite easy to set up, you don't need any hosting plan.
Re: Form Submitting To Email by Nairalandmonika: 2:33pm On Mar 22, 2020
Maymac:
If I want the form to be sent to my goggle spreadsheet, how will I go about it?
Google form takes care of everything. And it's easy to set up.
Re: Form Submitting To Email by superkoolkat(m): 3:00pm On Mar 22, 2020
Nairalandmonika:

Oh, I don't quite get u but from my understanding what u need is Google form. It's quite easy to set up, you don't need any hosting plan.
Google form is probably what the other guy needs. I want to be able to setup the form contained in index.html of my website in such a way that it mails form content to an email, even when its just opened from local storage and rendered on the browser. But it has to be my index.HTML Not google forms.
Thanks for your help I appreciate
Re: Form Submitting To Email by Nobody: 5:39pm On Mar 22, 2020
U might need to host.
Re: Form Submitting To Email by Nairalandmonika: 6:22pm On Mar 22, 2020
superkoolkat:

Google form is probably what the other guy needs. I want to be able to setup the form contained in index.html of my website in such a way that it mails form content to an email, even when its just opened from local storage and rendered on the browser. But it has to be my index.HTML Not google forms.
Thanks for your help I appreciate
I still don't quite get you but like I earlier said u should use action="mailto:email@gmail.com"
Re: Form Submitting To Email by kensmoney(m): 10:40am On Mar 26, 2020
Though I don't kn exactly wat u are trying to do. however u can use JavaScript library like Emailjs to achieve it.
Just checkout the doc

(1) (Reply)

Nairalanders Programs Website On His Phone / Google Playstore Not Accepting Nigeria Credit Cards / Top Ways To Earn Cryptocurrency In Nigeria

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 18
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.