I have a complex HTML form which I want to send via email. Is there a way to send and format the content of this email as HTML via javascript without using a server-side script?
Edit: Lets assume there is a smtp server at hand to do the job.
You can't send email from Javascript, so the obvious answer is no.
However, you can use the user's email client to send the email using the technique described in Sending emails with Javascript. Of course this allows the user opportunity to modify the email before it is sent, and it still requires an email server to accept the message, but it doesn't require you to write code that takes HTTP requests as input and sends email.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With