Welcome, Guest: Join Nairaland / LOGIN! / Trending / Recent / New
Stats: 2,444,047 members, 5,502,904 topics. Date: Wednesday, 01 April 2020 at 03:28 AM

Form Submitting To Email - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Form Submitting To Email (251 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
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
What kind of form, is it html form?
Re: Form Submitting To Email by superkoolkat(m): 2:04pm On Mar 22
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
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
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
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
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
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
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 riskybob: 5:39pm On Mar 22
U might need to host.
Re: Form Submitting To Email by Nairalandmonika: 6:22pm On Mar 22
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
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)

Webs And Apps Development / Help .....data Unable To Use / Co Programmers In Bayelsa State To Hook Up With .

(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 - 2020 Oluwaseun Osewa. All rights reserved. See How To Advertise. 258
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.