Download the PHP package hisune/php-aws-ses without Composer
On this page you can find all versions of the php package hisune/php-aws-ses. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package php-aws-ses
Amazon Simple Email Service provides a simple way to send e-mails without having to maintain your own mail server. Those PHP classes use the REST-based interface to that service.
This repository is a fork from version 0.8.2 of the original classes developed by Dan Myers Read the old docs here
Table of Contents
- Installation
- Basic Usage
- Recipients
- Message body
- Attachments
- Sending Bulk Messages
- API Endpoints
- Helper Methods
Installation
Install the latest version with
composer require daniel-zahariev/php-aws-ses
Basic Usage
Recipients
Message body
The default is UTF-8 if you do not specify a charset, which is usually the right setting. You can read more information in the SES API documentation
Attachments
Sending Bulk Messages
When hundreds of emails have to be sent in bulk it's best to use the Bulk mode which essentially reuses a CURL handler and reduces the number of SSL handshakes and this gives a better performance.
API Endpoints
Few Regions and Amazon SES endpoints are available and they can be used like this:
Helper Methods
See the documentation on GetSendQuota and GetSendStatistics for more information on these calls.
Errors
By default when Amazon SES API returns an error it will be triggered with trigger_error
:
Changelog
v.0.8.8
- Issues fixed: #24, #25, #30, #31
- added a method
setBulkMode
inSimpleEmailService
which can enable reuse ofSimpleEmailServiceRequest
object for bulk sending of requests to AWS SES - new methods in
SimpleEmailService
:getVerifyPeer
,setVerifyPeer
,getVerifyHost
,setVerifyHost
,getBulkMode
,setBulkMode
,getRequestHandler
(protected) - methods marked as deprecated in
SimpleEmailService
:enableVerifyHost
,enableVerifyPeer
,verifyHost
,verifyPeer
- new methods in
SimpleEmailServiceMessage
:clearTo
,clearCC
,clearBCC
,clearReplyTo
,clearRecipients
- new methods in
SimpleEmailServiceRequest
:setVerb
,clearParameters
,getCurlHandler
(protected) - updated
validate
method inSimpleEmailServiceMessage
- added some phpDocumentor blocks
v.0.8.7
- Minor updates
v.0.8.6
- Removed dummy code
- Removed version from source files
v.0.8.5
- A few issues are fixed #9, #10, #10
- Pull request for Adding an inline file is merged
- Pull request for fixing a 'From: ' field error with Raw messages is merged
- Composer file added and submited to Packagist.org
- Triggering an error is now optional (on by default)
- Added class constants in
SimpleEmailService
for easy selection of region API endpoint
v.0.8.4
- Added method
addCustomHeader
to classSimpleEmailServiceMessage
for adding custom headers when theSendRawEmail
call is used (#7) SendRawEmail
method can be enforced with a new parameter ofsendEmail
function- Recipients are now base64 encoded by default when the format is
Name <Email>
(#3) - Most of the notices should be cleared now (#5)
v.0.8.3
- Made automatic use of
SendRawEmail
REST API call when there are attachments
v.0.8.2.
- Inital impport
Todo List
- Fully document the class methods with phpdoc tags
- Build documentation with phpDocumentor
- Move examples to files
- Make a Composer package
- Allow X-Headers usage
All versions of php-aws-ses with dependencies
ext-curl Version *