Version: v0.8.1 - 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.lastLogs())
}

See Also