PHP 클래스 WPDKMail

## Overview Extends WPDKPost with useful method and property to mail.
저자: =undo= ([email protected])
상속: extends WPDKPost
파일 보기 프로젝트 열기: wpxtreme/wpdk

공개 프로퍼티들

프로퍼티 타입 설명
$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