class Mail (View source)

Methods

__construct(array $config = [])

Mail constructor

static SimpleMail|Smtp
configure(array $config = [])

Configure la classe Mail

bool
pushDriver(string $name, string $class_name)

Push new driver

static Smtp|SimpleMail
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 SimpleMail|Smtp configure(array $config = [])

Configure la classe Mail

Parameters

array $config

Return Value

SimpleMail|Smtp

Exceptions

MailException

bool pushDriver(string $name, string $class_name)

Push new driver

Parameters

string $name
string $class_name

Return Value

bool

static Smtp|SimpleMail getInstance()

Get mail instance

Return Value

Smtp|SimpleMail

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