Given an identity (email address or domain), enables or disables whether Amazon SES forwards feedback notifications as email. Feedback forwarding may only be disabled when both complaint and bounce topics are set. For more information about feedback notification, see the Amazon SES Developer Guide.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The identity for which to set feedback notification forwarding. Examples: |
|
|
Required |
Sets whether Amazon SES will forward feedback notifications as email. |
|
|
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