class Mail (View source)

Methods

__construct(array $config = [])

Mail constructor

configure(array $config = [])

Configure la classe Mail

bool
pushDriver(string $name, string $class_name)

Push new driver

getInstance()

Get mail instance

static 
send($view, $bind, callable $cb)

No description

static mixed
raw(string|array $to, string $subject, string $data, array $headers = [])

Send mail similar to the PHP mail function

static SendInterface
setDriver(string $driver)

Modify the smtp|mail driver

mixed
__call(string $name, array $arguments)

__call

Details

__construct(array $config = [])

Mail constructor

Parameters

array $config

Exceptions

MailException

static MailDriverInterface configure(array $config = [])

Configure la classe Mail

Parameters

array $config

Return Value

MailDriverInterface

Exceptions

MailException

bool pushDriver(string $name, string $class_name)

Push new driver

Parameters

string $name
string $class_name

Return Value

bool

static MailDriverInterface getInstance()

Get mail instance

Return Value

MailDriverInterface

static send($view, $bind, callable $cb)

No description

Parameters

$view
$bind
callable $cb

static mixed raw(string|array $to, string $subject, string $data, array $headers = [])

Send mail similar to the PHP mail function

Parameters

string|array $to
string $subject
string $data
array $headers

Return Value

mixed

static SendInterface setDriver(string $driver)

Modify the smtp|mail driver

Parameters

string $driver

Return Value

SendInterface

Exceptions

MailException

mixed __call(string $name, array $arguments)

__call

Parameters

string $name
array $arguments

Return Value

mixed

Exceptions

ErrorException