Class lispa\amos\emailmanager\base\AmosEmailManager

Inheritancelispa\amos\emailmanager\base\AmosEmailManager
Implementslispa\amos\emailmanager\interfaces\ManagerInterface

Property Details

$defaultLayout public property
public $defaultLayout "layout_fancy"
$defaultTemplate public property

The default layout to use for template emails.

public string $defaultTemplate "layout_default"
$defaultTransport public property

The default transport to use.

public string $defaultTransport 'mail'
$templateFields public property

List of template parts that will be rendered.

public array $templateFields = ['subject''heading''message']
$templatePath public property
public $templatePath "/emails/"
$templateType public property

Template type, can be "db" or "php".

public string $templateType "php"
$transports public property

Method Details

__construct() public method

public void __construct ( )
buildTemplateMessage() public method

public \lispa\amos\emailmanager\base\type buildTemplateMessage ( $template, $viewParams = [], $layout null )
$template \lispa\amos\emailmanager\base\type
$viewParams \lispa\amos\emailmanager\base\type
$layout \lispa\amos\emailmanager\base\type
getDefaultLayout() public method

public \lispa\amos\emailmanager\base\type getDefaultLayout ( )
getDefaultTemplate() public method

public \lispa\amos\emailmanager\base\type getDefaultTemplate ( )
getTemplatePath() public method

public \lispa\amos\emailmanager\base\type getTemplatePath ( )
getTemplateType() public method

public \lispa\amos\emailmanager\base\type getTemplateType ( )
queue() public method

Sends email message queue using default transport

public boolean queue ( $from, $to, $subject, $text, array $files = [], array $bcc = [], $params = [], $priority 0 )
$from string

Format accepted:

1) 'example@example.com' 2) 'example@example.com alias' the method considers the email address up to the first space, everything that follows is considered alias.

$to string
$subject string
$text string
$files array
$bcc array
$params
$priority integer
send() public method

Sends email message immediately using default transport

public boolean send ( $from, $to, $subject, $text, array $files = [], array $bcc = [], $params = [], $save_in_queue true )
$from string

Format accepted:

1) 'example@example.com' 2) 'example@example.com alias' the method considers the email address up to the first space, everything that follows is considered alias.

$to string|array
$subject string
$text string
$files array
$bcc array|string
$params
$save_in_queue
setDefaultLayout() public method

public void setDefaultLayout ( $layout )
$layout \lispa\amos\emailmanager\base\type
setDefaultTemplate() public method

public void setDefaultTemplate ( $tamplate )
$tamplate \lispa\amos\emailmanager\base\type
setTemplatePath() public method

public void setTemplatePath ( $path )
$path \lispa\amos\emailmanager\base\type
setTemplateType() public method

public void setTemplateType ( $templateType )
$templateType \lispa\amos\emailmanager\base\type
spool() public method

public integer spool ( $limit 1000 )
$limit integer