Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon SES version field

I've migrated servers and updated AWS phar, however once i've done that i'm getting the following error:

Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Missing required client configuration options: version: (string) A "version" configuration value is required. Specifying a version constraint ensures that your code will not be affected by a breaking change made to the service. For example, when using Amazon S3, you can lock your API version to "2006-03-01". Your build of the SDK has the following version(s) of "email": * "2010-12-01" You may provide "latest" to the "version" configuration value to utilize the most recent available API version that your client's API provider can find. Note: Using 'latest' in a production application is not recommended. A list of available API versions can be found on each client's API documentation page: http://docs.aws.amazon.com/aws-sdk-php/v3/api/index.html. If you are unable to load a specific API version, then you may need to update your copy of the SDK.' in phar:////includes/3rdparty/aws/aws.phar/Aws/ in phar:////includes/3rdparty/aws/aws.phar/Aws/ClientResolver.php on line 328

I've tried adding it via different method and looking into the actual documentation without any luck.

Here's my code right now:

$client = SesClient::factory(array(
    'user'   => 'uuuuu',
    'key'    => 'aaaaa',
    'secret' => 'bbbb',
    'region' => 'us-east-1',
));

$client->version("2010-12-01"); 
//Now that you have the client ready, you can build the message
$msg = array(); 
//more  code after this... 

Any help would be appreciated!

like image 533
Saulius Antanavicius Avatar asked Sep 04 '15 15:09

Saulius Antanavicius


People also ask

Is AWS SES deprecated?

To enhance the security of Amazon SES customers, beginning October 1, 2020, support for Signature Version 3 will be turned off (deprecated) in Amazon SES, and only Signature Version 4 will be supported going forward.

How do I check my AWS SES?

Sign in to the AWS Management Console and open the Amazon SES console at https://console.aws.amazon.com/ses/ .

How do you know if SES is in the sandbox?

Open the Amazon SES console at https://console.aws.amazon.com/ses/ . In the navigation pane, choose Account dashboard. In the warning box at the top of the console that says, "Your Amazon SES account is in the sandbox", on the right-hand side, choose Request production access.


1 Answers

Apparenty, the 'version' field is mandatory now, so you must pass it to the factory.

like image 159
Elie Roux Avatar answered Sep 21 '22 18:09

Elie Roux