PHP 클래스 SimpleEmailService

파일 보기 프로젝트 열기: daniel-zahariev/php-aws-ses 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$__accessKey AWS SES Access key
$__bulk_sending_mode Controls the reuse of CURL hander for sending a bulk of messages
$__host AWS SES Target host of region
$__secretKey AWS Secret key
$__ses_request Optionally reusable SimpleEmailServiceRequest instance
$__trigger_errors Enable/disable
$__verifyHost Controls CURLOPT_SSL_VERIFYHOST setting for SimpleEmailServiceRequest's curl handler
$__verifyPeer Controls CURLOPT_SSL_VERIFYPEER setting for SimpleEmailServiceRequest's curl handler

공개 메소드들

메소드 설명
__construct ( string $accessKey = null, string $secretKey = null, string $host = self::AWS_US_EAST_1, boolean $trigger_errors = true ) : void Constructor
__triggerError ( string $functionname, array $error ) : void Trigger an error message
deleteVerifiedEmailAddress ( string $email ) : array Removes the specified email address from the list of verified addresses.
enableVerifyHost ( $enable = true ) DEPRECATED
enableVerifyPeer ( $enable = true ) DEPRECATED
getAccessKey ( ) : string Get AWS SES auth access key
getBulkMode ( ) : boolean Get bulk email sending mode
getHost ( ) : boolean Get AWS target host
getSecretKey ( ) : string Get AWS SES auth secret key
getSendQuota ( ) : array Retrieves information on the current activity limits for this account.
getSendStatistics ( ) : array Retrieves statistics for the last two weeks of activity on this account.
getVerifyHost ( ) : boolean Get the verify host CURL mode
getVerifyPeer ( ) : boolean Get the verify peer CURL mode
listVerifiedEmailAddresses ( ) : array Lists the email addresses that have been verified and can be used as the 'From' address
sendEmail ( SimpleEmailServiceMessage $sesMessage, boolean $use_raw_request = false, boolean $trigger_error = null ) : array Given a SimpleEmailServiceMessage object, submits the message to the service for sending.
setAuth ( string $accessKey, string $secretKey ) : SimpleEmailService Set AWS access key and secret key
setBulkMode ( boolean $enable = true ) : SimpleEmailService Enable/disable bulk email sending mode
setVerifyHost ( boolean $enable = true ) : SimpleEmailService Enable/disable CURLOPT_SSL_VERIFYHOST for SimpleEmailServiceRequest's curl handler verifyHost and verifyPeer determine whether curl verifies ssl certificates.
setVerifyPeer ( boolean $enable = true ) : SimpleEmailService Enable/disable CURLOPT_SSL_VERIFYPEER for SimpleEmailServiceRequest's curl handler verifyHost and verifyPeer determine whether curl verifies ssl certificates.
verifyEmailAddress ( string $email ) : array Requests verification of the provided email address, so it can be used as the 'From' address when sending emails through SimpleEmailService.
verifyHost ( ) DEPRECATED
verifyPeer ( ) DEPRECATED

보호된 메소드들

메소드 설명
getRequestHandler ( $verb )

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( string $accessKey = null, string $secretKey = null, string $host = self::AWS_US_EAST_1, boolean $trigger_errors = true ) : void
$accessKey string Access key
$secretKey string Secret key
$host string Amazon Host through which to send the emails
$trigger_errors boolean Trigger PHP errors when AWS SES API returns an error
리턴 void

__triggerError() 공개 메소드

{@internal Used by member functions to output errors}
public __triggerError ( string $functionname, array $error ) : void
$functionname string The name of the function that failed
$error array Array containing error information
리턴 void

deleteVerifiedEmailAddress() 공개 메소드

Removes the specified email address from the list of verified addresses.
public deleteVerifiedEmailAddress ( string $email ) : array
$email string The email address to remove
리턴 array The request id for this request.

enableVerifyHost() 공개 메소드

DEPRECATED
public enableVerifyHost ( $enable = true )

enableVerifyPeer() 공개 메소드

DEPRECATED
public enableVerifyPeer ( $enable = true )

getAccessKey() 공개 메소드

Get AWS SES auth access key
public getAccessKey ( ) : string
리턴 string

getBulkMode() 공개 메소드

Get bulk email sending mode
public getBulkMode ( ) : boolean
리턴 boolean

getHost() 공개 메소드

Get AWS target host
public getHost ( ) : boolean
리턴 boolean

getRequestHandler() 보호된 메소드

protected getRequestHandler ( $verb )

getSecretKey() 공개 메소드

Get AWS SES auth secret key
public getSecretKey ( ) : string
리턴 string

getSendQuota() 공개 메소드

See http://docs.amazonwebservices.com/ses/latest/APIReference/API_GetSendQuota.html
public getSendQuota ( ) : array
리턴 array An array containing information on this account's activity limits.

getSendStatistics() 공개 메소드

See http://docs.amazonwebservices.com/ses/latest/APIReference/API_GetSendStatistics.html
public getSendStatistics ( ) : array
리턴 array An array of activity statistics. Each array item covers a 15-minute period.

getVerifyHost() 공개 메소드

Get the verify host CURL mode
public getVerifyHost ( ) : boolean
리턴 boolean

getVerifyPeer() 공개 메소드

Get the verify peer CURL mode
public getVerifyPeer ( ) : boolean
리턴 boolean

listVerifiedEmailAddresses() 공개 메소드

Lists the email addresses that have been verified and can be used as the 'From' address
public listVerifiedEmailAddresses ( ) : array
리턴 array An array containing two items: a list of verified email addresses, and the request id.

sendEmail() 공개 메소드

Given a SimpleEmailServiceMessage object, submits the message to the service for sending.
public sendEmail ( SimpleEmailServiceMessage $sesMessage, boolean $use_raw_request = false, boolean $trigger_error = null ) : array
$sesMessage SimpleEmailServiceMessage An instance of the message class
$use_raw_request boolean If this is true or there are attachments to the email `SendRawEmail` call will be used
$trigger_error boolean Optionally overwrite the class setting for triggering an error (with type check to true/false)
리턴 array An array containing the unique identifier for this message and a separate request id. Returns false if the provided message is missing any required fields. @link(AWS SES Response formats, http://docs.aws.amazon.com/ses/latest/DeveloperGuide/query-interface-responses.html)

setAuth() 공개 메소드

Set AWS access key and secret key
public setAuth ( string $accessKey, string $secretKey ) : SimpleEmailService
$accessKey string Access key
$secretKey string Secret key
리턴 SimpleEmailService $this

setBulkMode() 공개 메소드

Enable/disable bulk email sending mode
public setBulkMode ( boolean $enable = true ) : SimpleEmailService
$enable boolean New status for the mode
리턴 SimpleEmailService $this

setVerifyHost() 공개 메소드

It may be necessary to disable these checks on certain systems. These only have an effect if SSL is enabled.
public setVerifyHost ( boolean $enable = true ) : SimpleEmailService
$enable boolean New status for the mode
리턴 SimpleEmailService $this

setVerifyPeer() 공개 메소드

It may be necessary to disable these checks on certain systems. These only have an effect if SSL is enabled.
public setVerifyPeer ( boolean $enable = true ) : SimpleEmailService
$enable boolean New status for the mode
리턴 SimpleEmailService $this

verifyEmailAddress() 공개 메소드

After submitting this request, you should receive a verification email from Amazon at the specified address containing instructions to follow.
public verifyEmailAddress ( string $email ) : array
$email string The email address to get verified
리턴 array The request id for this request.

verifyHost() 공개 메소드

DEPRECATED
public verifyHost ( )

verifyPeer() 공개 메소드

DEPRECATED
public verifyPeer ( )

프로퍼티 상세

$__accessKey 보호되어 있는 프로퍼티

AWS SES Access key
protected $__accessKey

$__bulk_sending_mode 보호되어 있는 프로퍼티

Controls the reuse of CURL hander for sending a bulk of messages
protected $__bulk_sending_mode

$__host 보호되어 있는 프로퍼티

AWS SES Target host of region
protected $__host

$__secretKey 보호되어 있는 프로퍼티

AWS Secret key
protected $__secretKey

$__ses_request 보호되어 있는 프로퍼티

Optionally reusable SimpleEmailServiceRequest instance
protected $__ses_request

$__trigger_errors 보호되어 있는 프로퍼티

Enable/disable
protected $__trigger_errors

$__verifyHost 보호되어 있는 프로퍼티

Controls CURLOPT_SSL_VERIFYHOST setting for SimpleEmailServiceRequest's curl handler
protected $__verifyHost

$__verifyPeer 보호되어 있는 프로퍼티

Controls CURLOPT_SSL_VERIFYPEER setting for SimpleEmailServiceRequest's curl handler
protected $__verifyPeer