Class lispa\amos\emailmanager\base\AmosEmailManager
Inheritance | lispa\amos\emailmanager\base\AmosEmailManager |
---|---|
Implements | lispa\amos\emailmanager\interfaces\ManagerInterface |
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$defaultLayout | lispa\amos\emailmanager\base\AmosEmailManager | ||
$defaultTemplate | string | The default layout to use for template emails. | lispa\amos\emailmanager\base\AmosEmailManager |
$defaultTransport | string | The default transport to use. | lispa\amos\emailmanager\base\AmosEmailManager |
$templateFields | array | List of template parts that will be rendered. | lispa\amos\emailmanager\base\AmosEmailManager |
$templatePath | lispa\amos\emailmanager\base\AmosEmailManager | ||
$templateType | string | Template type, can be "db" or "php". | lispa\amos\emailmanager\base\AmosEmailManager |
$transports | lispa\amos\emailmanager\interfaces\TransportInterface[] | lispa\amos\emailmanager\base\AmosEmailManager |
Public Methods
Constants
Constant | Value | Description | Defined By |
---|---|---|---|
EMAILED | 'emailed' | lispa\amos\emailmanager\base\AmosEmailManager | |
ERROR | 'error' | lispa\amos\emailmanager\base\AmosEmailManager | |
PENDING | 'pending' | lispa\amos\emailmanager\base\AmosEmailManager | |
PROCESSING | 'processing' | lispa\amos\emailmanager\base\AmosEmailManager |
Property Details
The default layout to use for template emails.
The default transport to use.
List of template parts that will be rendered.
Template type, can be "db" or "php".
Method Details
public void __construct ( ) |
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 |
public \lispa\amos\emailmanager\base\type getDefaultLayout ( ) |
public \lispa\amos\emailmanager\base\type getDefaultTemplate ( ) |
public \lispa\amos\emailmanager\base\type getTemplatePath ( ) |
public \lispa\amos\emailmanager\base\type getTemplateType ( ) |
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 |
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 |
public void setDefaultLayout ( $layout ) | ||
$layout | \lispa\amos\emailmanager\base\type |
public void setDefaultTemplate ( $tamplate ) | ||
$tamplate | \lispa\amos\emailmanager\base\type |
public void setTemplatePath ( $path ) | ||
$path | \lispa\amos\emailmanager\base\type |
public void setTemplateType ( $templateType ) | ||
$templateType | \lispa\amos\emailmanager\base\type |
public integer spool ( $limit = 1000 ) | ||
$limit | integer |