4
我與JS工作,我有後續代碼:發送電子郵件Mailgun使用Javascript
var XHRResponse = XHR.send("POST", "https://api.mailgun.net/v2/sandbox224f28ae45a8499d84184fd4c48e62ee.mailgun.org/messages",{
"parameters": {
"from": "Mailgun Sandbox <[email protected]>",
"to": "Jordi <[email protected]>",
"subject": "Hello Jordi",
"text": "Congratulations Jordi, you just sent an email with Mailgun! You are truly awesome! You can see a record of this email in your logs: https://mailgun.com/cp/log . You can send up to 300 emails/day from this sandbox server. Next, you should add your own domain so you can send 10,000 emails/month for free."
}
});
我需要與apikey進行認證,但我不知道在哪裏以及如何。
謝謝
請參閱以下身份驗證:http://stackoverflow.com/questions/5507234/how-to-use-basic-auth-with-jquery-and-ajax – xyres