AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 3.5
Returns the user's sending statistics. The result is a list of data points, representing the last two weeks of sending activity.

Each data point in the list contains statistics for a 15-minute interval.

This action is throttled at one request per second.

Namespace: Amazon.SimpleEmail
Assembly: AWSSDK.dll
Version: (assembly version)


public virtual GetSendStatisticsResponse GetSendStatistics(
         GetSendStatisticsRequest request


Type: Amazon.SimpleEmail.Model.GetSendStatisticsRequest

Container for the necessary parameters to execute the GetSendStatistics service method.

Return Value
Type: Amazon.SimpleEmail.Model.GetSendStatisticsResponse
The response from the GetSendStatistics service method, as returned by SimpleEmailService.


This example shows how to get email send statistics for the last two weeks of activity.

Get send statistics example

var sesClient = new AmazonSimpleEmailServiceClient();

var response = sesClient.GetSendStatistics();

Console.WriteLine("For request " + 
  response.ResponseMetadata.RequestId + ":");

if (response.SendDataPoints.Count > 0)
  foreach (var point in response.SendDataPoints)
    Console.WriteLine("Data points for " + point.Timestamp + ":");
    Console.WriteLine("  Bounces: " + point.Bounces);
    Console.WriteLine("  Complaints: " + point.Complaints);
    Console.WriteLine("  Delivery Attempts: " + point.DeliveryAttempts);
    Console.WriteLine("  Rejects: " + point.Rejects);
  Console.WriteLine("No data points.");

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5