PHP Класс AWS_SES_WP_Mail\SES

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный метод

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

get_client() публичный метод

Get the client for AWS SES.
public get_client ( ) : Aws\Client\Ses | WP_Erro\WP_Error
Результат Aws\Client\Ses | WP_Erro\WP_Error

get_instance() публичный статический метод

public static get_instance ( ) : SES
Результат SES

send_wp_mail() публичный метод

Override WordPress' default wp_mail function with one that sends email using the AWS SDK.
С версии: 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
Результат boolean true if mail has been sent, false if it failed