如何发送没有服务器的电子邮件?只有前端的Javascript与sendgrid或 [英] How can i send emails without a server ? Only front-end Javascript with sendgrid or

查看:201
本文介绍了如何发送没有服务器的电子邮件?只有前端的Javascript与sendgrid或的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近想知道如何通过电子邮件作为服务应用程序(如sendgrid或mandrill等)发送只有前端语言的电子邮件。



Sendgrid和mandrill有Curl APIS,所以基本上我可以做一个AJAX发布请求到他们的API发送邮件,但事情是,我将不得不把我的API密钥在JS文件,这意味着它将被公开..而这应该是秘密的。



在这两个应用程序中,关于前端使用的文档中没有任何内容,除了您自己的服务器将使用API​​,但是我目前在前端工程。没有服务器编程,服务器只会呈现所有的资产。



你们知道任何这种方法或应用程序来实现吗?谢谢

解决方案

几个谚语




i was wondering lately how i could send emails with only a front-end language like Javascript through Email as a Service apps like sendgrid or mandrill or so.

Sendgrid and mandrill have Curl APIS, so basically i can just do an AJAX post request to their API to send a mail but the thing is, i will have to put my API secret key in the JS file, this means it will be public... while it's supposed to be secret.

On those two apps, there's nothing in the docs concerning front-end use except having your own server which will use the API, but i'm currently on front-end based project. No server programming, the server only renders the assets that's all.

Do you guys know any method or apps of this kind to acheive this ? Thanks

解决方案

Several suugestions

这篇关于如何发送没有服务器的电子邮件?只有前端的Javascript与sendgrid或的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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