How do I send an email using Javascript?

后端 未结 2 1726
青春惊慌失措
青春惊慌失措 2021-01-22 06:25

How do I send email using JavaScript?

I don\'t want to use mailto, because if I use mailto it will open an email client.

2条回答
  •  逝去的感伤
    2021-01-22 07:05

    I agree with @Matchu. Sending email requires server side languages and Javascript is client side languages. In this case, the best way would be to use PHP. When you'll PHP you've lot's of the option to send an email how you like. Here's the relevant example which you can use to send an email by using the PHP default mail() function.

提交回复
热议问题