PHP Class AWS_SES_WP_Mail\SES

显示文件 Open project: humanmade/aws-ses-wp-mail Class Usage Examples

Public Methods

Method Description
__construct ( $key, $secret, $region = null )
get_client ( ) : Aws\Client\Ses | WP_Erro\WP_Error Get the client for AWS SES.
get_instance ( ) : SES
send_wp_mail ( string $to, string $subject, string $message, mixed $headers = [], array $attachments = [] ) : boolean Override WordPress' default wp_mail function with one that sends email using the AWS SDK.

Method Details

__construct() public method

public __construct ( $key, $secret, $region = null )

get_client() public method

Get the client for AWS SES.
public get_client ( ) : Aws\Client\Ses | WP_Erro\WP_Error
return Aws\Client\Ses | WP_Erro\WP_Error

get_instance() public static method

public static get_instance ( ) : SES
return SES

send_wp_mail() public method

Override WordPress' default wp_mail function with one that sends email using the AWS SDK.
Since: 0.0.1
public send_wp_mail ( string $to, string $subject, string $message, mixed $headers = [], array $attachments = [] ) : boolean
$to string
$subject string
$message string
$headers mixed
$attachments array
return boolean true if mail has been sent, false if it failed