如何使用Javascript发送邮件 [英] How to send Mail using Javascript

查看:108
本文介绍了如何使用Javascript发送邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用javascript发送邮件。如果是,那么请给我一些提示。

解决方案

JavaScript当然是基于客户端的,因此没有像服务器上的C#那样的功能。要发送电子邮件,而不调用某些服务器端代码,基本上只限于mailto


你可以看到这个此处 [ ^ ]。它使用Javascript但使用Outlook自动发送电子邮件。


NO! JavaScript无法通过电子邮件发送表单!但是,有其他方法可以将表格数据发送到电子邮件地址。



详情请见:

http://www.javascript-coder.com/javascript-form/javascript-email-form.phtml [ ^ ]

Is it possible to send Mail using javascript. If yes then kindly give me some hint.

解决方案

JavaScript is of course client based so doesn't have the capabilities as say C# on the server. To send email, without calling some server-side code, you are basically limited to mailto


You can see this here[^]. It uses Javascript but sends email using Outlook automation.


NO! JavaScript can’t email a form! but, there are alternatives to send the form data to an email address.

See detail here:
http://www.javascript-coder.com/javascript-form/javascript-email-form.phtml[^]


这篇关于如何使用Javascript发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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