我可以使用 javascript 发送电子邮件吗

2022-01-17 00:00:00 email smtp javascript html smtpclient

是否可以仅使用 javascript 发送电子邮件?

Is it possible to send emails using just javascript?

推荐答案

是的. 使用 Web 服务.您可以对服务进行 AJAX 调用.EmailYak 就是这样一种服务(它现在处于私人测试阶段).

Yes. Using a Webservice. You can make an AJAX call to the service. EmailYak is one such service (It's in a private beta now).

这仍然是服务器端解决方案,因为实际的电子邮件是从服务器发送的.您只是通过 AJAX 与服务器通信并告诉它发送电子邮件.

This is still a server side solution, as the actual email is sent from the server. You are just communicating with a server via AJAX and telling it to send the email.

相关文章