class Mail (View source)

Methods

__construct(array $config = [])

Mail constructor

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

Configure la classe Mail

static Smtp|SimpleMail
getInstance()

Get mail instance

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

No description

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

Envoye de mail simulaire a la fonction mail de PHP

static SimpleMail|Smtp
setDriver($driver)

Modifie le driver smtp|mail

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

La configuration

Return Value

SimpleMail|Smtp

Exceptions

MailException

static Smtp|SimpleMail getInstance()

Get mail instance

Return Value

Smtp|SimpleMail

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

No description

Parameters

$view
$bind
Closure $cb

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

Envoye de mail simulaire a la fonction mail de PHP

Parameters

string|array $to

Le destinateur

string $subject

L'objet du mail

string $data

Le message du meail

array $headers

[optinal] Les entĂȘtes additionnel du mail.

Return Value

mixed

static SimpleMail|Smtp setDriver($driver)

Modifie le driver smtp|mail

Parameters

$driver

Return Value

SimpleMail|Smtp

Exceptions

MailException

mixed __call(string $name, array $arguments)

__call

Parameters

string $name
array $arguments

Return Value

mixed

Exceptions

ErrorException