Whenever you need to send an email, use the .send function.

Syntax
.send(/to/, /subject/, /message/, /from/, /attachment/)

Arguments

Field name
Type
Description
to
string
The e-mail address that will receive the email.
subject
string
The subject of the email.
message
string
Message to be sent. Use “<br>” to breakline.
from
string
[optional] 
E-mail address for the receiver to reply. The default is tago@tago.io.
attachment

JSON
[optional]  
Send an attachment with the email.
archive
Can be anything
Binary, string, number…
filename
string
Name of the archive with extension. Example: document.txt.

Returns {Promise<JSON>}