Installation guide
GetBucketLocation (service docs) GetBucketLogging (service docs)
GetBucketNotification (service docs) GetBucketPolicy (service docs)
GetBucketRequestPayment (service docs) GetBucketTagging (service docs)
GetBucketVersioning (service docs) GetBucketWebsite (service docs)
GetObject (service docs) GetObjectAcl (service docs)
GetObjectTorrent (service docs) HeadBucket (service docs)
HeadObject (service docs) ListBuckets (service docs)
ListMultipartUploads (service docs) ListObjectVersions (service docs)
ListObjects (service docs) ListParts (service docs)
PutBucketAcl (service docs) PutBucketCors (service docs)
PutBucketLifecycle (service docs) PutBucketLogging (service docs)
PutBucketNotification (service docs) PutBucketPolicy (service docs)
PutBucketRequestPayment (service docs) PutBucketTagging (service docs)
PutBucketVersioning (service docs) PutBucketWebsite (service docs)
PutObject (service docs) PutObjectAcl (service docs)
RestoreObject (service docs) UploadPart (service docs)
UploadPartCopy (service docs)
Amazon Simple Email Service
This guide focuses on the AWS SDK for PHP client for Amazon Simple Email Service. This guide assumes that you
have already downloaded and installed the AWS SDK for PHP. See Installation for more information on getting
started.
Creating a client
First you need to create a client object using one of the following techniques.
Factory method
The easiest way to get up and running quickly is to use the Aws\Ses\SesClient::factory() method and
provide your credentials (key and secret).
A region parameter is also required and must be set to one of the following values: us-west-2, us-east-1,
eu-west-1
use Aws\Ses\SesClient;
$client = SesClient::factory(array(
'key' => '<aws access key>',
'secret' => '<aws secret key>',
'region' => '<region name>'
));
You can provide your access keys like in the preceding example, or you can choose to omit them if you are using
AWS Identity and Access Management (IAM) roles for EC2 instances or credentials sourced from the
AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables.
Service builder
A more robust way to connect to Amazon Simple Email Service is through the service builder. This allows you to
specify credentials and other configuration settings in a configuration file. These settings can then be shared across
all clients so that you only have to specify your settings once.
Amazon Simple Email Service
112