MailingService
in package
implements
IMailingService
Interfaces, Classes, Traits and Enums
Table of Contents
- ACCOUNT_ACTIVATED = 'ACCOUNT_ACTIVATED'
- ACCOUNT_BLOCKED = 'ACCOUNT_BLOCKED'
- NEW_ACCOUNT = 'NEW_ACCOUNT'
- NEW_CODE_REQUEST = 'NEW_CODE_REQUEST'
- $mailer : PHPMailer
- $reciever : User
- Mail reciever
- $template : Template
- Template of the email
- __construct() : mixed
- send() : void
- Sends the email
- setMessageType() : void
- Sets type of message to send
- setReciever() : void
- Sets mail reciever
Constants
ACCOUNT_ACTIVATED
public
mixed
ACCOUNT_ACTIVATED
= 'ACCOUNT_ACTIVATED'
ACCOUNT_BLOCKED
public
mixed
ACCOUNT_BLOCKED
= 'ACCOUNT_BLOCKED'
NEW_ACCOUNT
public
mixed
NEW_ACCOUNT
= 'NEW_ACCOUNT'
NEW_CODE_REQUEST
public
mixed
NEW_CODE_REQUEST
= 'NEW_CODE_REQUEST'
Properties
$mailer
private
PHPMailer
$mailer
$reciever
Mail reciever
private
User
$reciever
$template
Template of the email
private
Template
$template
Methods
__construct()
public
__construct(SettingsInterface $settings) : mixed
Parameters
- $settings : SettingsInterface
Return values
mixed —send()
Sends the email
public
send() : void
Tags
Return values
void —setMessageType()
Sets type of message to send
public
setMessageType(string $type[, mixed $context = [] ]) : void
Parameters
- $type : string
- $context : mixed = []
Return values
void —setReciever()
Sets mail reciever
public
setReciever(User $user) : void
Parameters
- $user : User