Using Mailgun RestFUL's on client-side

非 Y 不嫁゛ 提交于 2019-12-03 08:50:43
superEb

According to the Authentication section of Mailgun's API Intro, they require Basic Auth, which is accomplished in code by adding the following HTTP header:

Authorization: Basic base64($username:$password)

For Mailgun, they mention using api as the username and your API key as the password.

For more details on how to add the Basic Auth header via jQuery, see this: How to use Basic Auth with jQuery and AJAX?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!