I
I
Ivan2021-04-06 17:37:33
PHP
Ivan, 2021-04-06 17:37:33

Could someone please explain at least approximately how to get Amazon SES statistics in Laravel via the API?

Good afternoon. I'm trying to make Amazon SES the mail provider of a Laravel project. In the .env file, I registered the necessary configs for the account, sends mail. Added AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY keys. In the Amazon console, statistics show that letters are being sent. But then you still need to pull out these statistics and process them. Installed the package aws/aws-sdk-php-laravel. I'm trying to pull through through the method getSendStatistics, such code from the documentation

$client = SesClient::factory(array(
            'version'=> 'latest',
            'region' => 'us-west-2'
        ));

        try {
            $result = $client->getSendStatistics([]);
            echo($result);
        } catch (Exception $e) {
            echo($e->getMessage()."\n");
        }


But it doesn't pull anything out. Can someone tell me at least an approximate algorithm how to do this. Where to dig.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question