PHP 클래스 messenger

파일 보기 프로젝트 열기: phpbb/phpbb 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$addresses
$extra_headers
$from
$mail_priority
$msg
$replyto
$subject
$use_queue

보호된 프로퍼티들

프로퍼티 타입 설명
$template phpbb\template\template

공개 메소드들

메소드 설명
anti_abuse_headers ( array $config, user $user ) : null Adds X-AntiAbuse headers
assign_block_vars ( $blockname, $vars )
assign_vars ( $vars ) assign variables to email template
bcc ( $address, $realname = '' ) Sets an bcc address to send to
build_header ( $to, $cc, $bcc ) Return email header
cc ( $address, $realname = '' ) Sets an cc address to send to
error ( $type, $msg ) Add error message to log
from ( $address ) Set the from address
generate_message_id ( ) : string Generates a valid message id to be used in emails
headers ( $headers ) set up extra mail headers
im ( $address, $realname = '' ) Sets a im contact to send to
messenger ( $use_queue = true ) Constructor
msg_email ( ) Send out emails
msg_jabber ( ) Send jabber message out
replyto ( $address ) Set the reply to address
reset ( ) Resets all the data (address, template file, etc etc) to default
save_queue ( ) Save to queue
send ( $method = NOTIFY_EMAIL, $break = false ) Send the mail out to the recipients set previously in var $this->addresses
set_addresses ( array $user ) Set addresses for to/im as available
set_mail_priority ( $priority = MAIL_NORMAL_PRIORITY ) Set the email priority
subject ( $subject = '' ) set up subject for mail
template ( $template_file, $template_lang = '', $template_path = '', $template_dir_prefix = '' ) Set email template to use
to ( $address, $realname = '' ) Sets an email address to send to

보호된 메소드들

메소드 설명
set_template_paths ( $path_name, $paths ) Set template paths to load
setup_template ( ) Setup template engine

메소드 상세

anti_abuse_headers() 공개 메소드

Adds X-AntiAbuse headers
public anti_abuse_headers ( array $config, user $user ) : null
$config array Configuration array
$user user A user object
리턴 null

assign_block_vars() 공개 메소드

public assign_block_vars ( $blockname, $vars )

assign_vars() 공개 메소드

assign variables to email template
public assign_vars ( $vars )

bcc() 공개 메소드

Sets an bcc address to send to
public bcc ( $address, $realname = '' )

build_header() 공개 메소드

Return email header
public build_header ( $to, $cc, $bcc )

cc() 공개 메소드

Sets an cc address to send to
public cc ( $address, $realname = '' )

error() 공개 메소드

Add error message to log
public error ( $type, $msg )

from() 공개 메소드

Set the from address
public from ( $address )

generate_message_id() 공개 메소드

Generates a valid message id to be used in emails
public generate_message_id ( ) : string
리턴 string message id

headers() 공개 메소드

set up extra mail headers
public headers ( $headers )

im() 공개 메소드

Sets a im contact to send to
public im ( $address, $realname = '' )

messenger() 공개 메소드

Constructor
public messenger ( $use_queue = true )

msg_email() 공개 메소드

Send out emails
public msg_email ( )

msg_jabber() 공개 메소드

Send jabber message out
public msg_jabber ( )

replyto() 공개 메소드

Set the reply to address
public replyto ( $address )

reset() 공개 메소드

Resets all the data (address, template file, etc etc) to default
public reset ( )

save_queue() 공개 메소드

Save to queue
public save_queue ( )

send() 공개 메소드

Send the mail out to the recipients set previously in var $this->addresses
public send ( $method = NOTIFY_EMAIL, $break = false )

set_addresses() 공개 메소드

Set addresses for to/im as available
public set_addresses ( array $user )
$user array User row

set_mail_priority() 공개 메소드

Set the email priority
public set_mail_priority ( $priority = MAIL_NORMAL_PRIORITY )

set_template_paths() 보호된 메소드

Set template paths to load
protected set_template_paths ( $path_name, $paths )

setup_template() 보호된 메소드

Setup template engine
protected setup_template ( )

subject() 공개 메소드

set up subject for mail
public subject ( $subject = '' )

template() 공개 메소드

Set email template to use
public template ( $template_file, $template_lang = '', $template_path = '', $template_dir_prefix = '' )

to() 공개 메소드

Sets an email address to send to
public to ( $address, $realname = '' )

프로퍼티 상세

$addresses 공개적으로 프로퍼티

public $addresses

$extra_headers 공개적으로 프로퍼티

public $extra_headers

$from 공개적으로 프로퍼티

public $from

$mail_priority 공개적으로 프로퍼티

public $mail_priority

$msg 공개적으로 프로퍼티

public $msg

$replyto 공개적으로 프로퍼티

public $replyto

$subject 공개적으로 프로퍼티

public $subject

$template 보호되어 있는 프로퍼티

protected template,phpbb\template $template
리턴 phpbb\template\template

$use_queue 공개적으로 프로퍼티

public $use_queue