SNS subscription never sent/received?
I have created one http subscriber in My SNS console panel. I need to maintain the status of each email (bounce, complaints).
I have set up a publicly accessible http endpoint, created a subscription to my Topic, I click on the Subscribe button and the popup says "A confirmation message will be sent to the subscribed endpoint."
I just not understand how to verify my endpoint and collecting the post data from Amazon SNS.
I have put the endpoint url in below format.
http://example.com/amazon_sns/sns_notification.php
Endpoint will append all post data to a text file, when I request to endpoint from browser the data is written. Is something wrong I am doing.
I've been trying to subscribe for 1 days now, no luck. Any help much appreciated.
NOTE: I'm assuming the problem is that your endpoint is not seeing any request. If that is not your problem please reply to me and update your question with what you problem is.
Here are some possibilities:
Some questions which would make it easier for me to help you:
Put this in your sns_notification.php
You will then receive the body that is posted to the url in your email, in which the message from amazon will appear with a link to confirm your SNS topic subscription.
<?php
$headers = apache_request_headers();
$body = @file_get_contents('php://input');
mail("YOUREMAILADDRESS@gmail.com", "ses callback", print_r($headers, 1)."n---body---n".$body);
?>
链接地址: http://www.djcxy.com/p/5518.html
上一篇: SNS和Node.js:将多个端点(ARN)订阅到主题
下一篇: SNS订阅从未发送/接收?