如何编程使用JavaScript发送电子邮件?请帮忙 [英] how to programming send email in javascript? please help

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

问题描述

如何使用javascript发送电子邮件?
请在这里给我编码.
请尝试不要通过链接其他网站来回答.
请帮助我.

How can I send email using javascript?
please, just give code me just here.
please try don''t answer by link other site.
please help me.

推荐答案

简短地说:您不能.
更长:如果您有服务器端后端,则可以使用所需的参数从客户端调用该后端,而该后端实际上将通过适当的提供程序发送电子邮件.从理论上讲,您可以向某些电子邮件提供商进行ajax调用,但是您必须将用户名和密码嵌入html代码中,这样才能将其分发给所有人.
Shortly: you can not.
Longer: you can, if you have a server side backend, that will be called from client side with the parameters needed - and that backend would actually send out the email via a proper provider. Theoretically you can make ajax calls to some email providers, but you would have to embed your username and password in the html code, thus you would give it out to everyone.


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

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