PHP Класс WPDKMail

## Overview Extends WPDKPost with useful method and property to mail.
Автор: =undo= ([email protected])
Наследование: extends WPDKPost
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$bcc string Header for carbon copy
$cc string Header for carbon copy

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

Метод Описание
__construct ( string | integer | object | null $mail = null, string $post_type = 'page' ) : WPDKMail Create an instance of WPDKMail class
postTypes ( ) : array Return the array with the available post type used to send a mail.
send ( string | integer $to, boolean | string $subject = false, boolean | integer | string $from = '', array $placeholders = [] ) : boolean | WPDKError Perform a send mail. Return FALSE if an error occour.

Приватные методы

Метод Описание
headers ( ) : string Return the computated header for mail

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

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

Create an instance of WPDKMail class
public __construct ( string | integer | object | null $mail = null, string $post_type = 'page' ) : WPDKMail
$mail string | integer | object | null Optional. Post ID, post object, post slug or null
$post_type string Optional. If $record is a string (slug) then this is the post type where search. Default is 'page'
Результат WPDKMail

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

Return the array with the available post type used to send a mail.
public static postTypes ( ) : array
Результат array

send() публичный Метод

Perform a send mail. Return FALSE if an error occour.
public send ( string | integer $to, boolean | string $subject = false, boolean | integer | string $from = '', array $placeholders = [] ) : boolean | WPDKError
$to string | integer String target 'name ' or user id
$subject boolean | string Optional. String subject for this mail, if FALSE will bw used the title of post-mail
$from boolean | integer | string Optional. String from 'name ' or user id, set to empty to use default blog name and admin email
$placeholders array Optional. A Key value pairs with placeholders substitution.
Результат boolean | WPDKError

Описание свойств

$bcc публичное свойство

Header for carbon copy
С версии: 1.4.9
public string $bcc
Результат string

$cc публичное свойство

Header for carbon copy
С версии: 1.4.9
public string $cc
Результат string