Send mail without server side code
Is there way where I can send a simple email to any end user using my site using my html code.开发者_StackOverflow社区.. Considering that my server supports only html and no other server side code...
You can use mailto:
url's that will open the user's mail client if the browser is so configured:
<a href="mailto:test@domain.com">Send mail</a>
You can also specify the E-Mail's body and some headers. See the Wikipedia article for details.
that however is pretty much it. This only opens an E-Mail with the address pre-set; the user will have to send the message, and the mail will have their sender address. There is no other way.
To be exact there is no way where you send a mail directly send a mail via html.... However if you have any other server which supports any server side script, you can write a generic ajax functionality which sends a mail and keep its access open, and call the functionality via javascript from your html code... Hope this helps!
精彩评论