baserCMS クラスリファレンス

MailMessageMailer extends BcMailer
in package

MailMessageMailer

Table of Contents

Properties

$_View  : View
View
$plugin  : string
プラグイン名

Methods

__construct()  : mixed
Constructor
deliver()  : array<string|int, mixed>
Render content and send email using configured transport.
dispatchLayerEvent()  : bool|Event
イベントを発火
getFrom()  : array<string|int, mixed>|mixed
送信元名を取得する
getPlugin()  : string
プラグイン名取得
getService()  : array<string|int, mixed>|mixed|object
Get Service
hasService()  : bool
Has Service
sendFormToAdmin()  : mixed
管理者宛にフォームの内容を送信する
sendFormToUser()  : mixed
ユーザー宛にフォームの内容を送信する(サンクスメール)
setEmailTransport()  : void
Emailのトランスポート設定を行う

Properties

$plugin

プラグイン名

protected string $plugin = 'BaserCore'

Methods

__construct()

Constructor

public __construct([null $config = null ]) : mixed
Parameters
$config : null = null
Tags
checked
noTodo

deliver()

Render content and send email using configured transport.

public deliver([string $content = '' ]) : array<string|int, mixed>
Parameters
$content : string = ''

Content.

Tags
psalm-return

array{headers: string, message: string}

checked
noTodo
Return values
array<string|int, mixed>

dispatchLayerEvent()

イベントを発火

public dispatchLayerEvent(string $name[, array<string|int, mixed> $data = [] ][, mixed $options = [] ]) : bool|Event
Parameters
$name : string
$data : array<string|int, mixed> = []
$options : mixed = []
Tags
checked
unitTest
noTodo
Return values
bool|Event

getFrom()

送信元名を取得する

public getFrom(EntityInterface $mailContent) : array<string|int, mixed>|mixed

sender_name が存在しない場合、サイト名を返却する

Parameters
$mailContent : EntityInterface
Tags
checked
noTodo
Return values
array<string|int, mixed>|mixed

getPlugin()

プラグイン名取得

public getPlugin() : string
Tags
checked
noTodo
Return values
string

getService()

Get Service

public getService( $service) : array<string|int, mixed>|mixed|object
Parameters
$service :
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>|mixed|object

hasService()

Has Service

public hasService( $service) : bool
Parameters
$service :
Tags
checked
noTodo
unitTest
Return values
bool

sendFormToAdmin()

管理者宛にフォームの内容を送信する

public sendFormToAdmin(EntityInterface $mailContent, string $adminMail, string $userMail, array<string|int, mixed> $data, array<string|int, mixed> $attachments[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
$mailContent : EntityInterface
$adminMail : string
$userMail : string
$data : array<string|int, mixed>
$attachments : array<string|int, mixed>
$options : array<string|int, mixed> = []
Tags
checked
noTodo

sendFormToUser()

ユーザー宛にフォームの内容を送信する(サンクスメール)

public sendFormToUser(EntityInterface $mailContent, string $adminMail, string $userMail, array<string|int, mixed> $data[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
$mailContent : EntityInterface
$adminMail : string
$userMail : string
$data : array<string|int, mixed>
$options : array<string|int, mixed> = []
Tags
checked
noTodo

setEmailTransport()

Emailのトランスポート設定を行う

public setEmailTransport() : void
Tags
checked
noTodo

        
On this page

Search results