0

In a website, apart from the using back-end languages, can i send html form value direct to my gmail?

Html form,

3rd Feb 2021, 9:17 PM
Programaster
Programaster - avatar
6 odpowiedzi
+ 2
no, you cannot... to send form data directly to your email, you must either give a 'mailto' link to the 'action' attribute of your form (this will open a prefilled email client for the visitor wich will be still able to NOT send it) or rely to back-end service to send email with the form value ^^
3rd Feb 2021, 9:34 PM
visph
visph - avatar
+ 1
Which means i need something like php?
3rd Feb 2021, 9:37 PM
Programaster
Programaster - avatar
+ 1
yes: could be php, or any other languages (there are http framework for almost every languages)
3rd Feb 2021, 9:39 PM
visph
visph - avatar
+ 1
Do you mean languages like react or angularJs can do it?
3rd Feb 2021, 9:46 PM
Programaster
Programaster - avatar
+ 1
react and angular aren't languages but frameworks... but angular on server side (and maybe react) can probably handle it... not sure if they have built-in for doing so, but that's possible ^^
3rd Feb 2021, 9:49 PM
visph
visph - avatar
+ 1
There is this nodemailer package you can look for and later on search for articles on how to use it in react app or others.
3rd Feb 2021, 10:09 PM
Abhay
Abhay - avatar