使用javascript从html发送电子邮件而没有默认outlook [英] sending email from html using javascript without default outlook

查看:88
本文介绍了使用javascript从html发送电子邮件而没有默认outlook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用javascript发送电子邮件而不使用outlook。我不想使用使用outlook发送电子邮件的mailto对象。

I want to send an email using javascript without using the outlook. I don't want to use mailto object which use outlook for sending email.

JavaScript是否提供了将表单中提交的数据发送到电子邮件地址的直接方法。

Is there any direct method provided by JavaScript to send the data submitted in the form to an email address.

推荐答案

有点儿。至少,您可以执行以下操作:

Kinda. At least, you have the possibility to do the following:

通过JavaScript,您可以调用基于服务器的服务,该服务可以发送电子邮件邮件是通过SMTP。是否通过简单的表单提交到您自己的服务器或通过 XmlHttpRequest 进行远程服务只是a)是否自己实施,b)是否能在其他地方找到服务。

Via JavaScript, you can make a call to a server-based service which can dispatch an e-mail via SMTP. Whether this call is made via a simple form submission to your own server or via an XmlHttpRequest to a remote service is only a matter of a) whether you will implement it yourself and b) whether you're able to find a service elsewhere.

tl; dr:


  • JavaScript 本身无法发送电子邮件

  • 但是,您可以制作JavaScript 调用一个能够对话SMTP的服务。

  • JavaScript itself cannot dispatch e-mails
  • However, you can make JavaScript call a service which is able to "talk" SMTP.

这篇关于使用javascript从html发送电子邮件而没有默认outlook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆