Version: v0.7.0 - Beta.  We welcome contributors & feedback.

Email.send

Email.send($message) -> boolean

Description

The $message Map must define these params:

It may also define these optional params:

Example

$status = Email.send({
    from: 'you@yoursite.com',
    fromName: 'Yoursite Admin',
    to: 'user@email.com',
    subject: 'Welcome!',
    body: html'''
        Thanks for joining!

        Here is a <a href="...">helpful link.</a>
    ''',
})

if !$status {
    print(Email.getLastLogs())
}

See Also