a-blog cms PHP API Reference

Engine
in package
implements MailerInterface

Table of Contents

Interfaces

MailerInterface

Properties

$attachedFiles  : array<string|int, mixed>
$bcc  : array<string|int, mixed>
$cc  : array<string|int, mixed>
$from  : string
$mailer  : Mailer
$message  : Email
$replyTo  : string
$returnPath  : string
$to  : array<string|int, mixed>

Methods

__construct()  : mixed
Mailer Engine constructor.
addBcc()  : self
Bccを追加
addCc()  : self
Ccを追加
addTo()  : self
Toを追加
attach()  : self
添付ファイルの追加
getInstance()  : self
getMessage()  : string
メールをstringで取得
init()  : self
初期化
parseAddress()  : array<string|int, mixed>
アドレス指定を分割
send()  : self
送信
setBcc()  : self
Bccを設定
setBody()  : self
本文を設定
setCc()  : self
Ccを設定
setFrom()  : self
Fromを設定
setHtml()  : $this
HTML(本文)を設定
setMailer()  : void
setReplyTo()  : self
ReplyToを設定
setSubject()  : self
Subjectを設定
setTo()  : self
Toを設定

Properties

$attachedFiles

protected array<string|int, mixed> $attachedFiles = []

$bcc

protected array<string|int, mixed> $bcc = []

$cc

protected array<string|int, mixed> $cc = []

$mailer

protected Mailer $mailer

$message

protected Email $message

$replyTo

protected string $replyTo

$returnPath

protected string $returnPath

$to

protected array<string|int, mixed> $to = []

Methods

__construct()

Mailer Engine constructor.

public __construct() : mixed

addBcc()

Bccを追加

public addBcc(string $bcc) : self
Parameters
$bcc : string
Return values
self

addCc()

Ccを追加

public addCc(string $cc) : self
Parameters
$cc : string
Return values
self

addTo()

Toを追加

public addTo(string $to) : self
Parameters
$to : string
Return values
self

attach()

添付ファイルの追加

public attach(string $path[, string $filename = '' ]) : self
Parameters
$path : string
$filename : string = ''
Tags
throws
RuntimeException
Return values
self

getInstance()

public getInstance() : self
Return values
self

getMessage()

メールをstringで取得

public getMessage() : string
Return values
string

init()

初期化

public init() : self
Return values
self

parseAddress()

アドレス指定を分割

public parseAddress(string $txt) : array<string|int, mixed>
Parameters
$txt : string
Return values
array<string|int, mixed>

send()

送信

public send([mixed $removeAttachedFiles = true ]) : self
Parameters
$removeAttachedFiles : mixed = true
Tags
throws
RuntimeException
Return values
self

setBcc()

Bccを設定

public setBcc(string $bcc) : self
Parameters
$bcc : string
Return values
self

setBody()

本文を設定

public setBody(string $body) : self
Parameters
$body : string
Return values
self

setCc()

Ccを設定

public setCc(string $cc) : self
Parameters
$cc : string
Return values
self

setFrom()

Fromを設定

public setFrom(string $from) : self
Parameters
$from : string
Return values
self

setHtml()

HTML(本文)を設定

public setHtml(string $html[, string $plain = null ]) : $this
Parameters
$html : string
$plain : string = null
Return values
$this

setMailer()

public setMailer(Mailer $mailer) : void
Parameters
$mailer : Mailer

setReplyTo()

ReplyToを設定

public setReplyTo(string $reply_to) : self
Parameters
$reply_to : string
Return values
self

setSubject()

Subjectを設定

public setSubject(string $subject) : self
Parameters
$subject : string
Return values
self

setTo()

Toを設定

public setTo(string $to) : self
Parameters
$to : string
Return values
self

        
On this page

Search results