How to format email content using a form?

I have a complex HTML form that I want to send via email. Is there a way to send and format the contents of this email as HTML via javascript without using a server-side script?

Edit: Suppose there is an smtp server for the job.

+5
source share
3 answers

You cannot send email with Javascript, so the obvious answer is no.

However, you can use the mail client to send email using the method described in Sending Email Using Javascript . Of course, this allows the user to change the email before it is sent and still requires the email server to accept this message, but it does not require you to write a code that accepts HTTP requests as input and sends the email.

+3
source

To send an email that you must connect to the SMTP server, now there is a connection that you would like to make through the server for several reasons:

  • You do not know which firewall a client has, it can block your ports
  • , / ,

, , , , .

+1

Why not just post the form on your website and submit a link?

0
source

All Articles