Property | Type | Description | |
---|---|---|---|
$bcc | string | Header for carbon copy | |
$cc | string | Header for carbon copy |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
headers ( ) : string | Return the computated header for mail |
public __construct ( string | integer | object | null $mail = null, string $post_type = 'page' ) : WPDKMail | ||
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' |
return | WPDKMail |
public send ( string | integer $to, boolean | string $subject = false, boolean | integer | string $from = '', array $placeholders = [] ) : boolean | WPDKError | ||
$to | string | integer | String target 'name |
$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 |
$placeholders | array | Optional. A Key value pairs with placeholders substitution. |
return | boolean | WPDKError |