PHP Class Snowfire\Beautymail\Beautymail

Inheritance: implements Illuminate\Contracts\Mail\Mailer
Show file Open project: snowfire/beautymail Class Usage Examples

Public Methods

Method Description
__construct ( $settings ) Initialise the settings and mailer.
failures ( ) : array Get the array of failed recipients.
getData ( ) : mixed Retrieve the settings.
queue ( string | array $view, array $data, Closure | string $callback ) : void Send a new message using the a view via queue.
raw ( string $text, mixed $callback ) : void Send a new message when only a raw text part.
send ( string | array $view, array $data = [], Closure | string $callback = null ) : void Send a new message using a view.
view ( $view, array $data = [] ) : Illuminate\View\View

Private Methods

Method Description
setLogoPath ( ) : mixed

Method Details

__construct() public method

Initialise the settings and mailer.
public __construct ( $settings )
$settings

failures() public method

Get the array of failed recipients.
public failures ( ) : array
return array

getData() public method

Retrieve the settings.
public getData ( ) : mixed
return mixed

queue() public method

Send a new message using the a view via queue.
public queue ( string | array $view, array $data, Closure | string $callback ) : void
$view string | array
$data array
$callback Closure | string
return void

raw() public method

Send a new message when only a raw text part.
public raw ( string $text, mixed $callback ) : void
$text string
$callback mixed
return void

send() public method

Send a new message using a view.
public send ( string | array $view, array $data = [], Closure | string $callback = null ) : void
$view string | array
$data array
$callback Closure | string
return void

view() public method

public view ( $view, array $data = [] ) : Illuminate\View\View
$view
$data array
return Illuminate\View\View