Engine
in package
implements
MailerInterface
Table of Contents
Interfaces
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
= []
$from
protected
string
$from
$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
selfaddCc()
Ccを追加
public
addCc(string $cc) : self
Parameters
- $cc : string
Return values
selfaddTo()
Toを追加
public
addTo(string $to) : self
Parameters
- $to : string
Return values
selfattach()
添付ファイルの追加
public
attach(string $path[, string $filename = '' ]) : self
Parameters
- $path : string
- $filename : string = ''
Tags
Return values
selfgetInstance()
public
getInstance() : self
Return values
selfgetMessage()
メールをstringで取得
public
getMessage() : string
Return values
stringinit()
初期化
public
init() : self
Return values
selfparseAddress()
アドレス指定を分割
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
Return values
selfsetBcc()
Bccを設定
public
setBcc(string $bcc) : self
Parameters
- $bcc : string
Return values
selfsetBody()
本文を設定
public
setBody(string $body) : self
Parameters
- $body : string
Return values
selfsetCc()
Ccを設定
public
setCc(string $cc) : self
Parameters
- $cc : string
Return values
selfsetFrom()
Fromを設定
public
setFrom(string $from) : self
Parameters
- $from : string
Return values
selfsetHtml()
HTML(本文)を設定
public
setHtml(string $html[, string $plain = null ]) : $this
Parameters
- $html : string
- $plain : string = null
Return values
$thissetMailer()
public
setMailer(Mailer $mailer) : void
Parameters
- $mailer : Mailer
setReplyTo()
ReplyToを設定
public
setReplyTo(string $reply_to) : self
Parameters
- $reply_to : string
Return values
selfsetSubject()
Subjectを設定
public
setSubject(string $subject) : self
Parameters
- $subject : string
Return values
selfsetTo()
Toを設定
public
setTo(string $to) : self
Parameters
- $to : string