0
mailgun apiからメールの内容を取得する方法に問題があります。
私はmailgunイベントapi(https://documentation.mailgun.com/user_manual.html#events)を使用し、イベントログを正常に取得します。
戻りその
{
"items": [
{
"tags": [],
"timestamp": 1376325780.160809,
"envelope": {
"sender": "[email protected]",
"transport": ""
},
"event": "accepted",
"campaigns": [],
"user-variables": {},
"flags": {
"is-authenticated": true,
"is-test-mode": false
},
"message": {
"headers": {
"to": "[email protected]",
"message-id": "[email protected]",
"from": "Excited User <[email protected]>",
"subject": "Hello"
},
"attachments": [],
"recipients": [
"[email protected]"
],
"size": 69
},
"recipient": "[email protected]",
"method": "http"
}
],
"paging": {
"next":
"https://api.mailgun.net/v3/samples.mailgun.org/events/W3siY...",
"previous":
"https://api.mailgun.net/v3/samples.mailgun.org/events/Lkawm..."
}
}
のようなデータしかし、問題は、イベントログが(...へ、から、被写体のみ)電子メールの内容が含まれていなかったことです。
電子メールの内容はどのように入手できますか?
誰かから私に例がありますか?
ありがとうございます!
お返事ありがとうございます。私はこのブログから答えを得た。 http://blog.mailgun.com/how-to-view-your-messages/ – timlentse