Given an identity (email address or domain), sets the Amazon SNS topic to which Amazon SES will
publish bounce and complaint notifications for emails sent with that identity as the
Source
. Publishing to topics may only be disabled when feedback forwarding is
enabled. For more information about feedback notification, see the Amazon SES Developer Guide.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The identity for which the topic will be set. Examples: |
|
|
Required |
The type of feedback notifications that will be published to the specified topic. [Allowed values: |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Testing Feedback Notification feature of SES
// Instantiate the class $email = new AmazonSES(); $response = $email->set_identity_feedback_forwarding_enabled('you@example.com', true); var_dump($response->isOK()); $response = $email->set_identity_notification_topic('you@example.com', 'Bounce'); var_dump($response->isOK()); $response = $email->get_identity_notification_attributes('you@example.com'); var_dump($response->isOK());Result:
bool(true) bool(true) bool(true)
Source
Method defined in services/ses.class.php | Toggle source view (8 lines) | View on GitHub