class NativeDriver implements MailDriverInterface (View source)

Methods

__construct(array $config = [])

SimpleMail Constructor

on(string $from)

Switch on other define from

bool
send(Message $message)

Implement send email

Details

__construct(array $config = [])

SimpleMail Constructor

Parameters

array $config

NativeDriver on(string $from)

Switch on other define from

Parameters

string $from

Return Value

NativeDriver

Exceptions

MailException

bool send(Message $message)

Implement send email

Parameters

Message $message

Return Value

bool

Exceptions

InvalidArgumentException