Skip to content Skip to sidebar Skip to footer

Can We Send Mail Using Html Static Page

i have made a static site with only html static pages but now i want a contact us from where in one can recieve the info entered by user via mail.so, basically i want to know wheth

Solution 1:

You can't send an email with just HTML (From the Front-End) unless you don't mind interacting with a third party service provider which can do the back-end process for you.

Otherwise, you need to use the Back-End, the most common and easiest way to do this is with PHP.

Solution 2:

Your "send mail" code would ultimately have to execute on the server, which requires a postback from the HTML page, but the HTML page (or its (script) contents) can't (and shouldn't, even if possible) use local (the user's) settings and facilities to send email.

Solution 3:

NO! JavaScript can’t email a form! but, there are alternatives to send the form data to an email address.

PHP mail() function is the best in my eye. Read more about it here: PHP mail() function

Post a Comment for "Can We Send Mail Using Html Static Page"