Email.send
Email.send($message) -> boolean
Description
The $message Map must define these params:
from: Sender email addressto: Destination email addresssubject: Message subject linebody: HTML TypeString or plain string
It may also define these optional params:
fromName: Name of senderreplyTo: Single addresscc: Single address, or List of addressesbcc: Single address, or List of addresses
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())
}