Mailer
extends Facade
in package
Table of Contents
Properties
Methods
- __callStatic() : mixed
- addBcc() : Engine
- addCc() : Engine
- attach() : Engine
- getInstance() : Engine
- get service instance
- getMessage() : string
- init() : Engine
- parseAddress() : array<string|int, mixed>
- send() : Engine
- setBcc() : Engine
- setBody() : Engine
- setCc() : Engine
- setContainer() : void
- setFrom() : Engine
- setHtml() : Engine
- setMailer() : void
- setReplyTo() : Engine
- setSubject() : Engine
- setTo() : Engine
- getServiceAlias() : string
- getServiceInstance() : mixed
- isCache() : bool
Properties
$container
protected
static Container
$container
Methods
__callStatic()
public
static __callStatic(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
addBcc()
public
static addBcc(string $bcc) : Engine
メールのBCCを追加
Parameters
- $bcc : string
Return values
EngineaddCc()
public
static addCc(string $cc) : Engine
メールのCCを追加
Parameters
- $cc : string
Return values
Engineattach()
public
static attach(string $path, string $filename) : Engine
メールに添付ファイルを追加
Parameters
- $path : string
- $filename : string
Return values
EnginegetInstance()
get service instance
public
static getInstance() : Engine
メールエンジンのインスタンスを取得
Return values
EnginegetMessage()
public
static getMessage() : string
メールの内容を取得
Return values
stringinit()
public
static init() : Engine
メールエンジンを初期化
Return values
EngineparseAddress()
public
static parseAddress(string $txt) : array<string|int, mixed>
メールの送信先を解析
Parameters
- $txt : string
Return values
array<string|int, mixed>send()
public
static send([bool $removeAttachedFiles = = 'true' ]) : Engine
メールを送信
Parameters
- $removeAttachedFiles : bool = = 'true'
Return values
EnginesetBcc()
public
static setBcc(string $bcc) : Engine
メールのBCCを設定
Parameters
- $bcc : string
Return values
EnginesetBody()
public
static setBody(string $body) : Engine
メールの本文を設定
Parameters
- $body : string
Return values
EnginesetCc()
public
static setCc(string $cc) : Engine
メールのCCを設定
Parameters
- $cc : string
Return values
EnginesetContainer()
public
static setContainer(Container $container) : void
Parameters
- $container : Container
setFrom()
public
static setFrom(string $from) : Engine
メールの送信者を設定
Parameters
- $from : string
Return values
EnginesetHtml()
public
static setHtml(string $html[, string|null $plain = = 'null' ]) : Engine
HTML形式のメールを設定
Parameters
- $html : string
- $plain : string|null = = 'null'
Return values
EnginesetMailer()
public
static setMailer(Mailer $mailer) : void
メールエンジンを設定
Parameters
- $mailer : Mailer
setReplyTo()
public
static setReplyTo(string $reply_to) : Engine
メールの返信先を設定
Parameters
- $reply_to : string
Return values
EnginesetSubject()
public
static setSubject(string $subject) : Engine
メールの件名を設定
Parameters
- $subject : string
Return values
EnginesetTo()
public
static setTo(string $to) : Engine
メールの送信先を設定
Parameters
- $to : string
Return values
EnginegetServiceAlias()
protected
static getServiceAlias() : string
Return values
stringgetServiceInstance()
protected
static getServiceInstance(string $alias) : mixed
Parameters
- $alias : string
isCache()
protected
static isCache() : bool